public class AdjustmentToolPanel extends AbstractToolPanel<ColorAdjustmentTool> implements SeekSlider.OnSeekBarChangeListener, DataSourceListAdapter.OnItemClickListener<AdjustmentToolPanel.AdjustOption>
Modifier and Type | Class and Description |
---|---|
protected static class |
AdjustmentToolPanel.AdjustOption |
static class |
AdjustmentToolPanel.HistoryStateOption |
static class |
AdjustmentToolPanel.OPTION |
protected class |
AdjustmentToolPanel.QuickListClickListener |
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
AdjustmentToolPanel() |
Modifier and Type | Method and Description |
---|---|
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected java.util.ArrayList<AdjustmentToolPanel.AdjustOption> |
createOptionList() |
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,
ColorAdjustmentTool tool)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
protected void |
onHistoryButtonStateChanged(HistoryState historyState) |
void |
onItemClick(AdjustmentToolPanel.AdjustOption entity) |
void |
onOnSeekBarThumbLeaved(SeekSlider bar,
float value) |
void |
onOnSeekBarValueChange(SeekSlider bar,
float value) |
protected void |
updateSeekBar() |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh, updateStageOverlapping
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel<ColorAdjustmentTool>
protected java.util.ArrayList<AdjustmentToolPanel.AdjustOption> createOptionList()
protected java.util.ArrayList<AbstractConfig> createQuickOptionList()
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<ColorAdjustmentTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<ColorAdjustmentTool>
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView, ColorAdjustmentTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<ColorAdjustmentTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<ColorAdjustmentTool>
@MainThread protected void onHistoryButtonStateChanged(HistoryState historyState)
public void onItemClick(@NonNull AdjustmentToolPanel.AdjustOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<AdjustmentToolPanel.AdjustOption>
public void onOnSeekBarThumbLeaved(SeekSlider bar, float value)
onOnSeekBarThumbLeaved
in interface SeekSlider.OnSeekBarChangeListener
public void onOnSeekBarValueChange(SeekSlider bar, float value)
onOnSeekBarValueChange
in interface SeekSlider.OnSeekBarChangeListener
@MainThread protected void updateSeekBar()