public abstract class ColorOptionToolPanel extends AbstractToolPanel implements DataSourceListAdapter.OnItemClickListener<ColorItem>, ColorPickerView.OnColorChanged
AbstractToolPanel.ToolView
ANIMATION_DURATION, historySettings, parentView, toolHistoryLevel, toolView, uiDensity
Constructor and Description |
---|
ColorOptionToolPanel(StateHandler stateHandler) |
Modifier and Type | Method and Description |
---|---|
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
abstract int |
getColor() |
abstract java.util.ArrayList<ColorItem> |
getColorList() |
protected int |
getLayoutResource() |
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.
|
void |
onColorPickerSelection(int color) |
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(ColorItem entity) |
abstract void |
setColor(int color) |
protected void |
setPipetteColor() |
attach, callAttached, detach, equals, feature, getConfig, getHistoryLevel, getHistorySettings, getHistoryState, getPanelView, getStateHandler, hashCode, isAcceptable, isAttached, isCancelable, isInited, isReady, onDetach, redoLocalState, refresh, revertChanges, revertToInitialState, saveEndState, saveInitialState, saveLocalState, setupHistory, toString, undoLocalState, updateStageOverlapping
public ColorOptionToolPanel(@NonNull StateHandler stateHandler)
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel
public abstract java.util.ArrayList<ColorItem> getColorList()
public abstract void setColor(int color)
public abstract int getColor()
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
@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
public void onItemClick(@NonNull ColorItem entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<ColorItem>
@MainThread protected void setPipetteColor()
public void onColorPickerSelection(int color)
onColorPickerSelection
in interface ColorPickerView.OnColorChanged