public class TextTool extends StickerTool
| Modifier and Type | Class and Description |
|---|---|
static class |
TextTool.ColorSelection |
static class |
TextTool.FontSelection |
static class |
TextTool.Options |
AbstractConfig.AspectConfigInterface, AbstractConfig.BindData, AbstractConfig.ColorConfigInterface, AbstractConfig.ConfigViewHolder, AbstractConfig.FontConfigInterface<T>, AbstractConfig.ImageFilterInterface, AbstractConfig.StickerConfigInterface, AbstractConfig.ToolConfigInterfacepanelClassNO_THUMBNAIL_ID, ORIGINAL_THUMBNAIL_SIZE| Constructor and Description |
|---|
TextTool(int name,
int drawableId) |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
attachPanel(android.view.ViewGroup parentView,
EditorPreview preview) |
void |
detachPanel(boolean revertChanges) |
java.lang.String |
getTitle() |
boolean |
isRevertible() |
void |
openColorSelection(TextTool.ColorSelection.TYPE type,
int currentColor,
TextTool.ColorSelection.OnColorSelected listener) |
void |
openFontSelection(AbstractConfig.FontConfigInterface currentFontSelection,
TextTool.FontSelection.OnFontSelected listener) |
void |
setColor(int color,
int backgroundColor) |
void |
setFontConfig(AbstractConfig.FontConfigInterface fontConfig) |
addSticker, addSticker, bringStickerToFront, deleteSticker, flipSticker, getCurrentTextConfig, getOperation, refreshConfig, revertState, saveStateconvertFromRange, convertToRange, getEditorPreview, getLayout, getOperator, getVerticalLayout, isAttached, isSelectable, refreshPanel, revertChangescreateViewHolder, generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, hasStaticThumbnail, isClickableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateViewHolder, generateBindData, generateBindDataAsync, getName@NonNull public java.lang.String getTitle()
getTitle in interface AbstractConfig.ToolConfigInterfacegetTitle in class AbstractConfigpublic boolean isRevertible()
isRevertible in interface AbstractConfig.ToolConfigInterfaceisRevertible in class StickerToolpublic void setFontConfig(AbstractConfig.FontConfigInterface fontConfig)
public void setColor(int color,
int backgroundColor)
public android.view.View attachPanel(@NonNull
android.view.ViewGroup parentView,
@NonNull
EditorPreview preview)
attachPanel in class StickerToolpublic void detachPanel(boolean revertChanges)
detachPanel in interface AbstractConfig.ToolConfigInterfacedetachPanel in class StickerToolpublic void openFontSelection(AbstractConfig.FontConfigInterface currentFontSelection, TextTool.FontSelection.OnFontSelected listener)
public void openColorSelection(TextTool.ColorSelection.TYPE type, int currentColor, TextTool.ColorSelection.OnColorSelected listener)