public class AdjustmentToolPanel extends AbstractToolPanel implements SeekSlider.OnSeekBarChangeListener, DataSourceListAdapter.OnItemClickListener<AdjustOption>
Modifier and Type | Class and Description |
---|---|
protected class |
AdjustmentToolPanel.QuickListClickListener |
AbstractToolPanel.ToolView
Modifier and Type | Field and Description |
---|---|
static int |
OPTION_BLACKS |
static int |
OPTION_BRIGHTNESS |
static int |
OPTION_CLARITY |
static int |
OPTION_CONTRAST |
static int |
OPTION_EXPOSURE |
static int |
OPTION_GAMMA |
static int |
OPTION_HIGHLIGHT |
static int |
OPTION_NONE |
static int |
OPTION_REDO |
static int |
OPTION_RESET |
static int |
OPTION_SATURATION |
static int |
OPTION_SHADOW |
static int |
OPTION_TEMPERATURE |
static int |
OPTION_UNDO |
static int |
OPTION_WHITES |
static java.lang.String |
TOOL_ID |
ANIMATION_DURATION, historySettings, parentView, toolHistoryLevel, toolView, uiDensity
Constructor and Description |
---|
AdjustmentToolPanel(StateHandler stateHandler) |
Modifier and Type | Method and Description |
---|---|
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected java.util.ArrayList<AdjustOption> |
createOptionList() |
protected java.util.ArrayList<OptionItem> |
createQuickOptionList() |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
protected java.lang.Class<? extends Settings>[] |
getHistorySettings() |
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
protected void |
onHistoryButtonStateChanged(HistoryState historyState) |
void |
onItemClick(AdjustOption entity) |
void |
onOnSeekBarThumbLeaved(SeekSlider bar,
float value) |
void |
onOnSeekBarValueChange(SeekSlider bar,
float value) |
protected void |
updateSeekBar() |
attach, callAttached, detach, equals, feature, getConfig, getHistoryLevel, getHistoryState, getPanelView, getStateHandler, hashCode, isAcceptable, isAttached, isCancelable, isInited, isReady, onBeforeDetach, 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_UNDO
public static final int OPTION_REDO
public static final int OPTION_NONE
public static final int OPTION_GAMMA
public static final int OPTION_CLARITY
public static final int OPTION_CONTRAST
public static final int OPTION_SATURATION
public static final int OPTION_BRIGHTNESS
public static final int OPTION_TEMPERATURE
public static final int OPTION_HIGHLIGHT
public static final int OPTION_EXPOSURE
public static final int OPTION_SHADOW
public static final int OPTION_BLACKS
public static final int OPTION_WHITES
public static final int OPTION_RESET
public AdjustmentToolPanel(@NonNull StateHandler stateHandler)
@MainThread protected void onHistoryButtonStateChanged(HistoryState historyState)
@Nullable protected java.lang.Class<? extends Settings>[] getHistorySettings()
getHistorySettings
in class AbstractToolPanel
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 java.util.ArrayList<OptionItem> createQuickOptionList()
protected java.util.ArrayList<AdjustOption> createOptionList()
@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 AdjustOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<AdjustOption>
@MainThread protected void updateSeekBar()
public void onOnSeekBarValueChange(SeekSlider bar, float value)
onOnSeekBarValueChange
in interface SeekSlider.OnSeekBarChangeListener
public void onOnSeekBarThumbLeaved(SeekSlider bar, float value)
onOnSeekBarThumbLeaved
in interface SeekSlider.OnSeekBarChangeListener