public class TextOptionToolPanel extends AbstractToolPanel<TextOptionsEditorTool> implements TextFontSelectionEditorTool.OnFontSelected, DataSourceListAdapter.OnItemClickListener<TextOptionToolPanel.TextStickerOption>, AbstractColorEditorTool.OnColorSelected<TextEditorTool.COLOR_TYPE>
Modifier and Type | Class and Description |
---|---|
protected static class |
TextOptionToolPanel.HistoryStateOption |
static class |
TextOptionToolPanel.OPTION |
protected static class |
TextOptionToolPanel.TextStickerAlignOption |
protected static class |
TextOptionToolPanel.TextStickerColorOption |
protected static class |
TextOptionToolPanel.TextStickerOption |
protected static class |
TextOptionToolPanel.TextStickerQuickOption |
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
TextOptionToolPanel() |
Modifier and Type | Method and Description |
---|---|
void |
changeQuickOptionVisibility(EditorMenuState menuState) |
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected java.util.ArrayList<AbstractConfig> |
createOptionList() |
protected java.util.ArrayList<AbstractConfig> |
createQuickOptionList() |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
TextOptionsEditorTool tool)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
protected void |
onDoubleTapped() |
protected void |
onHistoryChanged(HistoryState historyState) |
void |
onItemClick(TextOptionToolPanel.TextStickerOption entity) |
void |
refresh() |
protected void |
selectBackgroundColor() |
protected void |
selectColor() |
protected void |
selectFont() |
void |
setColor(int color,
TextEditorTool.COLOR_TYPE type) |
void |
setFontConfig(FontConfigInterface fontConfig) |
protected void |
toggleAlign() |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, updateStageOverlapping
@MainThread public void changeQuickOptionVisibility(EditorMenuState menuState)
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel<TextOptionsEditorTool>
protected java.util.ArrayList<AbstractConfig> createOptionList()
protected java.util.ArrayList<AbstractConfig> createQuickOptionList()
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<TextOptionsEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<TextOptionsEditorTool>
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView, TextOptionsEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<TextOptionsEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<TextOptionsEditorTool>
@MainThread protected void onDoubleTapped()
@MainThread protected void onHistoryChanged(HistoryState historyState)
public void onItemClick(@NonNull TextOptionToolPanel.TextStickerOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<TextOptionToolPanel.TextStickerOption>
public void refresh()
refresh
in class AbstractToolPanel<TextOptionsEditorTool>
protected void selectBackgroundColor()
protected void selectColor()
protected void selectFont()
public void setColor(int color, @NonNull TextEditorTool.COLOR_TYPE type)
setColor
in interface AbstractColorEditorTool.OnColorSelected<TextEditorTool.COLOR_TYPE>
public void setFontConfig(FontConfigInterface fontConfig)
setFontConfig
in interface TextFontSelectionEditorTool.OnFontSelected
protected void toggleAlign()