public class TransformToolPanel extends AbstractToolPanel implements DataSourceListAdapter.OnItemClickListener<AbstractIdItem>, android.view.View.OnClickListener, AdjustSlider.AdjustBarChangeListener
AbstractToolPanel.ToolView
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOOL_ID |
ANIMATION_DURATION, historySettings, parentView, toolHistoryLevel, toolView, uiDensity
Constructor and Description |
---|
TransformToolPanel(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) |
protected java.lang.Class<? extends Settings>[] |
getHistorySettings() |
protected int |
getLayoutResource() |
protected void |
onAspectChanged() |
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 |
onClick(android.view.View v) |
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(AbstractIdItem entity) |
void |
onProgressChanged(AdjustSlider seekBar,
float value,
boolean fromUser)
Notification that the progress level has changed.
|
protected void |
updateUi() |
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 TransformToolPanel(@NonNull StateHandler stateHandler)
protected int getLayoutResource()
getLayoutResource
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
@Nullable protected java.lang.Class<? extends Settings>[] getHistorySettings()
getHistorySettings
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 void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel
protected int onBeforeDetach(@NonNull android.view.View panelView, boolean revertChanges)
AbstractToolPanel
onBeforeDetach
in class AbstractToolPanel
public void onItemClick(AbstractIdItem entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<AbstractIdItem>
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
@MainThread protected void updateUi()
@MainThread protected void onAspectChanged()
public void onProgressChanged(AdjustSlider seekBar, float value, boolean fromUser)
AdjustSlider.AdjustBarChangeListener
onProgressChanged
in interface AdjustSlider.AdjustBarChangeListener
seekBar
- The SeekBar whose progress has changedvalue
- The current progress level. This will be in the range min..max where max
was set by AdjustSlider.setMax(float)
and min was set by AdjustSlider.setMin(float)
. (The default value for max is 1.)fromUser
- True if the progress change was initiated by the user.