public class StickerOptionToolPanel extends AbstractToolPanel<StickerOptionsEditorTool> implements DataSourceListAdapter.OnItemClickListener<StickerOptionToolPanel.StickerOption>, AbstractColorEditorTool.OnColorSelected<StickerEditorTool.COLOR_TYPE>, SeekSlider.OnSeekBarChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
StickerOptionToolPanel.HistoryStateOption |
static class |
StickerOptionToolPanel.OPTION |
protected static class |
StickerOptionToolPanel.StickerColorOption |
protected static class |
StickerOptionToolPanel.StickerOption |
protected static class |
StickerOptionToolPanel.StickerQuickOption |
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
StickerOptionToolPanel() |
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(ImageStickerConfig config) |
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,
StickerOptionsEditorTool tool)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
protected void |
onHistoryChanged(HistoryState historyState) |
void |
onItemClick(StickerOptionToolPanel.StickerOption entity) |
void |
onOnSeekBarThumbLeaved(SeekSlider bar,
float value) |
void |
onOnSeekBarValueChange(SeekSlider bar,
float value) |
void |
openColorInkSelect() |
void |
openColorTintSelect() |
void |
refresh() |
void |
selectSticker() |
void |
setColor(int color,
StickerEditorTool.COLOR_TYPE type) |
protected void |
updateSeekBarView() |
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<StickerOptionsEditorTool>
protected java.util.ArrayList<AbstractConfig> createOptionList(ImageStickerConfig config)
protected java.util.ArrayList<AbstractConfig> createQuickOptionList()
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<StickerOptionsEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<StickerOptionsEditorTool>
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView, StickerOptionsEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<StickerOptionsEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<StickerOptionsEditorTool>
@MainThread protected void onHistoryChanged(HistoryState historyState)
@MainThread public void onItemClick(@NonNull StickerOptionToolPanel.StickerOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<StickerOptionToolPanel.StickerOption>
public void onOnSeekBarThumbLeaved(SeekSlider bar, float value)
onOnSeekBarThumbLeaved
in interface SeekSlider.OnSeekBarChangeListener
public void onOnSeekBarValueChange(SeekSlider bar, float value)
onOnSeekBarValueChange
in interface SeekSlider.OnSeekBarChangeListener
public void openColorInkSelect()
public void openColorTintSelect()
public void refresh()
refresh
in class AbstractToolPanel<StickerOptionsEditorTool>
public void selectSticker()
public void setColor(int color, StickerEditorTool.COLOR_TYPE type)
setColor
in interface AbstractColorEditorTool.OnColorSelected<StickerEditorTool.COLOR_TYPE>
@MainThread protected void updateSeekBarView()