public class TextOptionToolPanel extends AbstractToolPanel<TextOptionsEditorTool> implements TextFontSelectionEditorTool.OnFontSelected, DataSourceListAdapter.OnItemClickListener<ly.img.android.ui.panels.TextOptionToolPanel.TextStickerOption>, AbstractColorEditorTool.OnColorSelected<TextEditorTool.COLOR_TYPE>
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
TextOptionToolPanel() |
Modifier and Type | Method and Description |
---|---|
protected Animator |
createExitAnimator(View panelView) |
protected Animator |
createShowAnimator(View panelView) |
protected int |
getLayoutResource() |
protected void |
onAttached(Context context,
View panelView,
TextOptionsEditorTool tool)
Called on atteched the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(ly.img.android.ui.panels.TextOptionToolPanel.TextStickerOption entity) |
void |
refresh() |
void |
setColor(int color,
TextEditorTool.COLOR_TYPE type) |
void |
setFontConfig(FontConfigInterface fontConfig) |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach
@NonNull protected Animator createExitAnimator(@NonNull View panelView)
createExitAnimator
in class AbstractToolPanel<TextOptionsEditorTool>
@NonNull protected Animator createShowAnimator(@NonNull View panelView)
createShowAnimator
in class AbstractToolPanel<TextOptionsEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<TextOptionsEditorTool>
protected void onAttached(Context context, @NonNull 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>
public void onItemClick(@NonNull ly.img.android.ui.panels.TextOptionToolPanel.TextStickerOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<ly.img.android.ui.panels.TextOptionToolPanel.TextStickerOption>
public void refresh()
refresh
in class AbstractToolPanel<TextOptionsEditorTool>
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