public class StickerEditorTool extends AbstractEditorTool
Modifier and Type | Class and Description |
---|---|
static class |
StickerEditorTool.COLOR_TYPE |
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<StickerEditorTool> |
CREATOR |
protected LayerListSettings.LayerSettings |
detachLayerSettings |
historySettings, panelClass, toolHistoryLevel
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
StickerEditorTool(int name,
int drawableId) |
|
StickerEditorTool(int name,
int drawableId,
java.lang.Class<? extends AbstractToolPanel> panelClass) |
protected |
StickerEditorTool(android.os.Parcel in) |
equals, getConfig, getHistoryState, getLayout, getPanelView, getStateHandler, getVerticalLayout, isAttached, isCancelable, isReady, isRevertible, isSelectable, redoLocalState, refreshPanel, revertChanges, saveEndState, saveInitialState, saveLocalState, setupHistory, undoLocalState
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, isDirty, setDirtyFlag
public static final android.os.Parcelable.Creator<StickerEditorTool> CREATOR
protected LayerListSettings.LayerSettings detachLayerSettings
public StickerEditorTool(@StringRes int name, @DrawableRes int drawableId)
public StickerEditorTool(@StringRes int name, @DrawableRes int drawableId, @NonNull java.lang.Class<? extends AbstractToolPanel> panelClass)
protected StickerEditorTool(android.os.Parcel in)
@MainThread public void addSticker(ImageStickerConfig config)
@MainThread public void addSticker(TextStickerConfig config)
protected void afterMotionComplete()
public android.view.View attachPanel(@NonNull android.view.ViewGroup parentView, @NonNull StateHandler stateHandler)
attachPanel
in class AbstractEditorTool
@MainThread public void attachSticker(ImageStickerConfig config)
@MainThread public void attachSticker(TextStickerConfig config)
public void bringStickerToFront()
public void deleteSticker()
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AbstractEditorTool
public void detachPanel(boolean revertChanges)
detachPanel
in interface ToolConfigInterface
detachPanel
in class AbstractEditorTool
public ly.img.android.Feature feature()
feature
in class AbstractEditorTool
public void flipSticker(boolean vertical)
public float getBrightness()
public int getCategorySelection()
public float getContrast()
@Nullable public ImageStickerConfig getCurrentImageStickerConfig()
@Nullable public ImageStickerLayerSettings getCurrentImageStickerSettings()
@Nullable public StickerLayerSettings getCurrentStickerSettings()
protected int getHistoryLevel()
getHistoryLevel
in class AbstractEditorTool
@NonNull protected java.lang.Class<? extends Settings>[] getHistorySettings()
getHistorySettings
in class AbstractEditorTool
public int getInkColor()
public <StickerConfig> StickerConfig getLastConfig(java.lang.Class<? extends StickerConfigInterface> stickerConfigClass)
protected LayerListSettings getLayerListSettings()
protected EditorMenuState getMenuState()
public float getSaturation()
public int getTintColor()
public boolean isAcceptable()
isAcceptable
in interface ToolConfigInterface
isAcceptable
in class AbstractEditorTool
public void openStickerSelection()
public void refreshConfig(StickerConfigInterface config)
protected void revertToInitialState()
revertToInitialState
in class AbstractEditorTool
public void selectInkColor(int currentColor, AbstractColorEditorTool.OnColorSelected<StickerEditorTool.COLOR_TYPE> listener)
public void selectTintColor(int currentColor, AbstractColorEditorTool.OnColorSelected<StickerEditorTool.COLOR_TYPE> listener)
public void setBrightness(float value)
public void setCategorySelection(int categorySelection)
public void setColorMatrix(android.graphics.ColorMatrix filter)
public void setContrast(float value)
public void setInkColor(int color)
public void setSaturation(float value)
public void setTintColor(int color)
public void straightenSticker()
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractEditorTool