public class FrameToolPanel extends AbstractToolPanel<FrameEditorTool> implements DataSourceListAdapter.OnItemClickListener<FrameConfigInterface>, ImgLyFloatSlider.OnSeekBarChangeListener
Modifier and Type | Class and Description |
---|---|
protected static class |
FrameToolPanel.FrameQuickOption |
static class |
FrameToolPanel.OPTION |
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
FrameToolPanel() |
Modifier and Type | Method and Description |
---|---|
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
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,
FrameEditorTool tool)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(FrameConfigInterface entity) |
void |
onProgressChanged(ImgLyFloatSlider seekBar,
float value,
boolean fromUser)
Notification that the progress level has changed.
|
protected void |
onQuickItemClick(FrameToolPanel.FrameQuickOption entity) |
void |
onStartTrackingTouch(ImgLyFloatSlider seekBar)
Notification that the user has started a touch gesture.
|
void |
onStopTrackingTouch(ImgLyFloatSlider seekBar)
Notification that the user has finished a touch gesture.
|
protected void |
setSeekBarVisibility(boolean barVisible,
boolean delay) |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh, updateStageOverlapping
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel<FrameEditorTool>
protected java.util.ArrayList<AbstractConfig> createQuickOptionList()
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<FrameEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<FrameEditorTool>
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView, FrameEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<FrameEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<FrameEditorTool>
public void onItemClick(FrameConfigInterface entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<FrameConfigInterface>
public void onProgressChanged(ImgLyFloatSlider seekBar, float value, boolean fromUser)
ImgLyFloatSlider.OnSeekBarChangeListener
onProgressChanged
in interface ImgLyFloatSlider.OnSeekBarChangeListener
seekBar
- The SeekBar whose progress has changedvalue
- The current progress level. This will be in the range min..max where max
was set by ImgLyFloatSlider.setMax(float)
and min was set by ImgLyFloatSlider.setMin(float)
. (The default value for max is 1.)fromUser
- True if the progress change was initiated by the user.protected void onQuickItemClick(FrameToolPanel.FrameQuickOption entity)
public void onStartTrackingTouch(ImgLyFloatSlider seekBar)
ImgLyFloatSlider.OnSeekBarChangeListener
onStartTrackingTouch
in interface ImgLyFloatSlider.OnSeekBarChangeListener
seekBar
- The SeekBar in which the touch gesture beganpublic void onStopTrackingTouch(ImgLyFloatSlider seekBar)
ImgLyFloatSlider.OnSeekBarChangeListener
onStopTrackingTouch
in interface ImgLyFloatSlider.OnSeekBarChangeListener
seekBar
- The SeekBar in which the touch gesture beganprotected void setSeekBarVisibility(boolean barVisible, boolean delay)