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 <any> |
CREATOR |
detachLayerSettings
panelClass
isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
TextEditorTool(int name,
java.lang.Class<? extends AbstractToolPanel> panelClass) |
|
TextEditorTool(int name,
int drawableId) |
protected |
TextEditorTool(Parcel in) |
Modifier and Type | Method and Description |
---|---|
void |
addSticker(TextStickerConfig config) |
View |
attachPanel(ViewGroup parentView,
StateHandler stateHandler) |
int |
describeContents() |
void |
detachPanel(boolean revertChanges) |
TextStickerConfig |
getCurrentTextStickerConfig() |
protected EditorMenuState |
getMenuState() |
java.lang.String |
getTitle() |
boolean |
isRevertible() |
void |
openFontSelection(FontConfigInterface currentFontSelection,
TextFontSelectionEditorTool.OnFontSelected listener) |
void |
openTextAdd() |
protected void |
revertState() |
void |
selectColor(TextEditorTool.COLOR_TYPE type,
int currentColor,
AbstractColorEditorTool.OnColorSelected<TextEditorTool.COLOR_TYPE> listener) |
void |
setColor(int color,
int backgroundColor) |
void |
setFontConfig(FontConfigInterface fontConfig) |
void |
startEditText() |
void |
writeToParcel(Parcel dest,
int flags) |
addSticker, attachSticker, attachSticker, bringStickerToFront, deleteSticker, flipSticker, getCurrentImageStickerConfig, getCurrentStickerSettings, getInkColor, getLastConfig, getLayerListSettings, getTintColor, openStickerSelection, refreshConfig, saveState, selectInkColor, selectTintColor, setColorFilter, setInkColor, setTintColor, straightenSticker
equals, getConfig, getLayout, getPanelView, getStateHandler, getVerticalLayout, isAttached, isReady, isSelectable, refreshPanel, revertChanges
createViewHolder, generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createViewHolder, generateBindData, generateBindDataAsync, getName, isDirty, setDirtyFlag
public TextEditorTool(@StringRes int name, @NonNull java.lang.Class<? extends AbstractToolPanel> panelClass)
public TextEditorTool(@StringRes int name, @DrawableRes int drawableId)
protected TextEditorTool(Parcel in)
@MainThread public void addSticker(TextStickerConfig config)
addSticker
in class StickerEditorTool
@MainThread public View attachPanel(@NonNull ViewGroup parentView, @NonNull StateHandler stateHandler)
attachPanel
in class StickerEditorTool
public int describeContents()
describeContents
in class StickerEditorTool
@MainThread public void detachPanel(boolean revertChanges)
detachPanel
in interface ToolConfigInterface
detachPanel
in class StickerEditorTool
@MainThread public TextStickerConfig getCurrentTextStickerConfig()
protected EditorMenuState getMenuState()
getMenuState
in class StickerEditorTool
@NonNull public java.lang.String getTitle()
getTitle
in interface ToolConfigInterface
getTitle
in class AbstractConfig
public boolean isRevertible()
isRevertible
in interface ToolConfigInterface
isRevertible
in class StickerEditorTool
@MainThread public void openFontSelection(FontConfigInterface currentFontSelection, TextFontSelectionEditorTool.OnFontSelected listener)
@MainThread public void openTextAdd()
protected void revertState()
revertState
in class StickerEditorTool
@MainThread public void selectColor(TextEditorTool.COLOR_TYPE type, int currentColor, AbstractColorEditorTool.OnColorSelected<TextEditorTool.COLOR_TYPE> listener)
@MainThread public void setColor(int color, int backgroundColor)
@MainThread public void setFontConfig(FontConfigInterface fontConfig)
@MainThread public void startEditText()
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class StickerEditorTool