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