public class TextOptionToolPanel extends AbstractToolPanel implements TextTool.FontSelection.OnFontSelected, DataSourceListAdapter.OnItemClickListener<TextOptionToolPanel.TextStickerOption>, TextTool.ColorSelection.OnColorSelected
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TextOptionToolPanel.TextStickerColorOption |
protected static class |
TextOptionToolPanel.TextStickerOption |
AbstractToolPanel.ToolViewANIMATION_DURATION, parentView, toolView| Constructor and Description |
|---|
TextOptionToolPanel() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
AbstractTool tool)
Called on atteched the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(TextOptionToolPanel.TextStickerOption entity) |
void |
refresh() |
void |
selectBackgroundColor() |
void |
selectColor() |
void |
selectFont() |
void |
setColor(int color,
TextTool.ColorSelection.TYPE type) |
void |
setFontConfig(AbstractConfig.FontConfigInterface fontConfig) |
attach, detach, init, isAttached, onBeforeDetachprotected int getLayoutResource()
getLayoutResource in class AbstractToolPanelprotected void onAttached(android.content.Context context,
@NonNull
android.view.View panelView,
AbstractTool tool)
AbstractToolPanelonAttached in class AbstractToolPanelcontext - the view contextpanelView - the tool paneltool - the toolpublic void refresh()
refresh in class AbstractToolPanelprotected void onDetached()
AbstractToolPanelonDetached in class AbstractToolPanelpublic void selectFont()
public void selectColor()
public void selectBackgroundColor()
public void setFontConfig(AbstractConfig.FontConfigInterface fontConfig)
setFontConfig in interface TextTool.FontSelection.OnFontSelectedpublic void setColor(int color,
@NonNull
TextTool.ColorSelection.TYPE type)
setColor in interface TextTool.ColorSelection.OnColorSelectedpublic void onItemClick(@NonNull
TextOptionToolPanel.TextStickerOption entity)
onItemClick in interface DataSourceListAdapter.OnItemClickListener<TextOptionToolPanel.TextStickerOption>