public class BrushToolPanel extends AbstractToolPanel implements DataSourceListAdapter.OnItemClickListener<ly.img.android.ui.panels.BrushToolPanel.BrushOption>, ImgLyFloatSlider.OnSeekBarChangeListener, AbstractColorTool.OnColorSelected<BrushTool.COLOR_TYPE>, TimeOut.Callback<ly.img.android.ui.panels.BrushToolPanel.TIMER>
AbstractToolPanel.ToolViewANIMATION_DURATION, parentView, toolView| Constructor and Description |
|---|
BrushToolPanel() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
AbstractTool tool)
Called on atteched the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(ly.img.android.ui.panels.BrushToolPanel.BrushOption entity) |
void |
onProgressChanged(ImgLyFloatSlider seekBar,
float value,
boolean fromUser)
Notification that the progress level has changed.
|
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.
|
void |
onTimeOut(ly.img.android.ui.panels.BrushToolPanel.TIMER identifier) |
void |
setColor(int color,
BrushTool.COLOR_TYPE type) |
attach, detach, init, isAttached, onBeforeDetach, refreshprotected int getLayoutResource()
getLayoutResource in class AbstractToolPanelprotected void onAttached(android.content.Context context,
@NonNull
android.view.View panelView,
AbstractTool tool)
AbstractToolPanelonAttached in class AbstractToolPanelcontext - the view contextpanelView - the tool paneltool - the toolprotected void onDetached()
AbstractToolPanelonDetached in class AbstractToolPanelpublic void setColor(int color,
BrushTool.COLOR_TYPE type)
setColor in interface AbstractColorTool.OnColorSelected<BrushTool.COLOR_TYPE>public void onProgressChanged(ImgLyFloatSlider seekBar, float value, boolean fromUser)
ImgLyFloatSlider.OnSeekBarChangeListeneronProgressChanged in interface ImgLyFloatSlider.OnSeekBarChangeListenerseekBar - 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.public void onStartTrackingTouch(ImgLyFloatSlider seekBar)
ImgLyFloatSlider.OnSeekBarChangeListeneronStartTrackingTouch in interface ImgLyFloatSlider.OnSeekBarChangeListenerseekBar - The SeekBar in which the touch gesture beganpublic void onStopTrackingTouch(ImgLyFloatSlider seekBar)
ImgLyFloatSlider.OnSeekBarChangeListeneronStopTrackingTouch in interface ImgLyFloatSlider.OnSeekBarChangeListenerseekBar - The SeekBar in which the touch gesture beganpublic void onItemClick(@NonNull
ly.img.android.ui.panels.BrushToolPanel.BrushOption entity)
onItemClick in interface DataSourceListAdapter.OnItemClickListener<ly.img.android.ui.panels.BrushToolPanel.BrushOption>public void onTimeOut(ly.img.android.ui.panels.BrushToolPanel.TIMER identifier)
onTimeOut in interface TimeOut.Callback<ly.img.android.ui.panels.BrushToolPanel.TIMER>