public class BrushToolPanel extends AbstractToolPanel<BrushEditorTool> implements DataSourceListAdapter.OnItemClickListener<ly.img.android.ui.panels.BrushToolPanel.BrushOption>, SeekSlider.OnSeekBarChangeListener, AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE>, TimeOut.Callback<ly.img.android.ui.panels.BrushToolPanel.TIMER>
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
BrushToolPanel() |
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,
BrushEditorTool tool)
Called on atteched the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(ly.img.android.ui.panels.BrushToolPanel.BrushOption entity) |
void |
onOnSeekBarValueChange(SeekSlider bar,
float value) |
void |
onTimeOut(ly.img.android.ui.panels.BrushToolPanel.TIMER identifier) |
void |
setColor(int color,
BrushEditorTool.COLOR_TYPE type) |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh
@NonNull protected Animator createExitAnimator(@NonNull View panelView)
createExitAnimator
in class AbstractToolPanel<BrushEditorTool>
@NonNull protected Animator createShowAnimator(@NonNull View panelView)
createShowAnimator
in class AbstractToolPanel<BrushEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<BrushEditorTool>
protected void onAttached(Context context, @NonNull View panelView, BrushEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<BrushEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<BrushEditorTool>
public void onItemClick(@NonNull ly.img.android.ui.panels.BrushToolPanel.BrushOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<ly.img.android.ui.panels.BrushToolPanel.BrushOption>
public void onOnSeekBarValueChange(SeekSlider bar, float value)
onOnSeekBarValueChange
in interface SeekSlider.OnSeekBarChangeListener
public void onTimeOut(ly.img.android.ui.panels.BrushToolPanel.TIMER identifier)
onTimeOut
in interface TimeOut.Callback<ly.img.android.ui.panels.BrushToolPanel.TIMER>
public void setColor(int color, BrushEditorTool.COLOR_TYPE type)
setColor
in interface AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE>