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 <any> |
CREATOR |
protected LayerListSettings.LayerSettings |
detachLayerSettings |
panelClass
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(Parcel in) |
equals, getConfig, getLayout, getPanelView, getStateHandler, getVerticalLayout, isAttached, isReady, isSelectable, refreshPanel, revertChanges
createViewHolder, generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle
createViewHolder, generateBindData, generateBindDataAsync, getName, isDirty, setDirtyFlag
public static final <any> 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(Parcel in)
@MainThread public void addSticker(ImageStickerConfig config)
@MainThread public void addSticker(TextStickerConfig config)
public View attachPanel(@NonNull 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 class AbstractEditorTool
public void detachPanel(boolean revertChanges)
detachPanel
in interface ToolConfigInterface
detachPanel
in class AbstractEditorTool
public void flipSticker(boolean vertical)
@Nullable public ImageStickerConfig getCurrentImageStickerConfig()
@Nullable public StickerLayerSettings getCurrentStickerSettings()
public int getInkColor()
public <StickerConfig> StickerConfig getLastConfig(java.lang.Class<? extends StickerConfigInterface> stickerConfigClass)
protected LayerListSettings getLayerListSettings()
protected EditorMenuState getMenuState()
public int getTintColor()
public boolean isRevertible()
isRevertible
in interface ToolConfigInterface
isRevertible
in class AbstractEditorTool
public void openStickerSelection()
public void refreshConfig(StickerConfigInterface config)
protected void revertState()
revertState
in class AbstractEditorTool
protected void saveState()
saveState
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 setColorFilter(ColorFilter filter)
public void setInkColor(int color)
public void setTintColor(int color)
public void straightenSticker()
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class AbstractEditorTool