public class TransformToolPanel extends AbstractToolPanel<TransformEditorTool> implements DataSourceListAdapter.OnItemClickListener<AspectConfigInterface>, android.view.View.OnClickListener, AdjustSlider.AdjustBarChangeListener
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
TransformToolPanel() |
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 int |
getLayoutResource() |
protected void |
onAspectChanged() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
TransformEditorTool transformTool)
Called on attached the View.
|
void |
onClick(android.view.View v) |
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(AspectConfigInterface entity) |
void |
onProgressChanged(AdjustSlider seekBar,
float value,
boolean fromUser)
Notification that the progress level has changed.
|
protected void |
updateUi() |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh, updateStageOverlapping
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel<TransformEditorTool>
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<TransformEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<TransformEditorTool>
@MainThread protected void onAspectChanged()
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView, TransformEditorTool transformTool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<TransformEditorTool>
context
- the view contextpanelView
- the tool paneltransformTool
- the toolpublic void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
protected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<TransformEditorTool>
public void onItemClick(AspectConfigInterface entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<AspectConfigInterface>
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.@MainThread protected void updateUi()