public class BrushToolPanel extends AbstractToolPanel implements DataSourceListAdapter.OnItemClickListener<OptionItem>, SeekSlider.OnSeekBarChangeListener, TimeOut.Callback<ly.img.android.pesdk.ui.panels.BrushToolPanel.TIMER>
AbstractToolPanel.ToolView
Modifier and Type | Field and Description |
---|---|
static int |
OPTION_BRING_TO_FRONT |
static int |
OPTION_COLOR |
static int |
OPTION_DELETE |
static int |
OPTION_HARDNESS |
static int |
OPTION_NONE |
static int |
OPTION_REDO |
static int |
OPTION_SIZE |
static int |
OPTION_UNDO |
static java.lang.String |
TOOL_ID |
ANIMATION_DURATION, historySettings, parentView, toolHistoryLevel, toolView, uiDensity
Constructor and Description |
---|
BrushToolPanel(StateHandler stateHandler) |
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<BrushOption> |
createOptionList() |
protected java.util.ArrayList<OptionItem> |
createQuickOptionList() |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
protected void |
deleteLayerContent() |
protected java.lang.Class<? extends Settings>[] |
getHistorySettings() |
protected int |
getLayoutResource() |
protected void |
hideBrushPreview() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView)
Called on attached the View.
|
protected int |
onBeforeDetach(android.view.View panelView,
boolean revertChanges)
Called before the View will detached.
|
protected void |
onDetached()
Called after View would detached.
|
protected void |
onHistoryButtonStateChanged(HistoryState historyState) |
void |
onItemClick(OptionItem entity) |
void |
onOnSeekBarThumbLeaved(SeekSlider bar,
float value) |
void |
onOnSeekBarValueChange(SeekSlider bar,
float value) |
void |
onTimeOut(ly.img.android.pesdk.ui.panels.BrushToolPanel.TIMER identifier) |
protected void |
selectColor() |
protected void |
updateBrushPreview() |
protected void |
updateColorItem() |
protected void |
updateSeekBarValues() |
attach, callAttached, detach, equals, feature, getConfig, getHistoryLevel, getHistoryState, getPanelView, getStateHandler, hashCode, isAcceptable, isAttached, isCancelable, isInited, isReady, onDetach, redoLocalState, refresh, revertChanges, revertToInitialState, saveEndState, saveInitialState, saveLocalState, setupHistory, toString, undoLocalState, updateStageOverlapping
public static final java.lang.String TOOL_ID
public static final int OPTION_NONE
public static final int OPTION_SIZE
public static final int OPTION_REDO
public static final int OPTION_UNDO
public static final int OPTION_COLOR
public static final int OPTION_HARDNESS
public static final int OPTION_BRING_TO_FRONT
public static final int OPTION_DELETE
public BrushToolPanel(@NonNull StateHandler stateHandler)
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView)
AbstractToolPanel
onAttached
in class AbstractToolPanel
context
- the view contextpanelView
- this tool panel viewprotected int onBeforeDetach(@NonNull android.view.View panelView, boolean revertChanges)
AbstractToolPanel
onBeforeDetach
in class AbstractToolPanel
protected void deleteLayerContent()
@MainThread protected void onHistoryButtonStateChanged(HistoryState historyState)
@Nullable protected java.lang.Class<? extends Settings>[] getHistorySettings()
getHistorySettings
in class AbstractToolPanel
protected java.util.ArrayList<OptionItem> createQuickOptionList()
@NonNull protected java.util.ArrayList<BrushOption> createOptionList()
@MainThread protected void updateColorItem()
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel
protected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel
protected void updateBrushPreview()
public void onItemClick(@NonNull OptionItem entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<OptionItem>
protected void selectColor()
protected void closeSeekBarSlider()
protected void bringLayerToFront()
protected void updateSeekBarValues()
public void onTimeOut(ly.img.android.pesdk.ui.panels.BrushToolPanel.TIMER identifier)
onTimeOut
in interface TimeOut.Callback<ly.img.android.pesdk.ui.panels.BrushToolPanel.TIMER>
protected void hideBrushPreview()
public void onOnSeekBarValueChange(SeekSlider bar, float value)
onOnSeekBarValueChange
in interface SeekSlider.OnSeekBarChangeListener
public void onOnSeekBarThumbLeaved(SeekSlider bar, float value)
onOnSeekBarThumbLeaved
in interface SeekSlider.OnSeekBarChangeListener