public class BrushToolPanel extends AbstractToolPanel<BrushEditorTool> implements DataSourceListAdapter.OnItemClickListener<BrushToolPanel.BrushOption>, SeekSlider.OnSeekBarChangeListener, AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE>, TimeOut.Callback<ly.img.android.ui.panels.BrushToolPanel.TIMER>
Modifier and Type | Class and Description |
---|---|
protected static class |
BrushToolPanel.BrushColorOption |
protected static class |
BrushToolPanel.BrushOption |
static class |
BrushToolPanel.HistoryStateOption |
static class |
BrushToolPanel.OPTION |
protected class |
BrushToolPanel.QuickListClickListener |
AbstractToolPanel.ToolView
Modifier and Type | Field and Description |
---|---|
protected BrushEditorTool |
brushTool |
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
BrushToolPanel() |
Modifier and Type | Method and Description |
---|---|
protected void |
bringLayerToFront() |
protected void |
closeSeekBarSlider() |
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected java.util.ArrayList<BrushToolPanel.BrushOption> |
createOptionList() |
protected java.util.ArrayList<AbstractConfig> |
createQuickOptionList() |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
protected int |
getLayoutResource() |
protected void |
goBackwards() |
protected void |
hideBrushPreview() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
BrushEditorTool tool)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
protected void |
onHistoryButtonStateChanged(HistoryState historyState) |
void |
onItemClick(BrushToolPanel.BrushOption entity) |
void |
onOnSeekBarThumbLeaved(SeekSlider bar,
float value) |
void |
onOnSeekBarValueChange(SeekSlider bar,
float value) |
void |
onTimeOut(ly.img.android.ui.panels.BrushToolPanel.TIMER identifier) |
protected void |
selectColor() |
void |
setColor(int color,
BrushEditorTool.COLOR_TYPE type) |
protected void |
updateBrushPreview() |
protected void |
updateColorItem() |
protected void |
updateSeekBarValues() |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh, updateStageOverlapping
protected BrushEditorTool brushTool
protected void bringLayerToFront()
protected void closeSeekBarSlider()
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel<BrushEditorTool>
@NonNull protected java.util.ArrayList<BrushToolPanel.BrushOption> createOptionList()
protected java.util.ArrayList<AbstractConfig> createQuickOptionList()
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<BrushEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<BrushEditorTool>
protected void goBackwards()
protected void hideBrushPreview()
protected void onAttached(android.content.Context context, @NonNull android.view.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>
@MainThread protected void onHistoryButtonStateChanged(HistoryState historyState)
public void onItemClick(@NonNull BrushToolPanel.BrushOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<BrushToolPanel.BrushOption>
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 onTimeOut(ly.img.android.ui.panels.BrushToolPanel.TIMER identifier)
onTimeOut
in interface TimeOut.Callback<ly.img.android.ui.panels.BrushToolPanel.TIMER>
protected void selectColor()
public void setColor(int color, BrushEditorTool.COLOR_TYPE type)
setColor
in interface AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE>
protected void updateBrushPreview()
@MainThread protected void updateColorItem()
protected void updateSeekBarValues()