Class TouchModifierBase
Defines the base class to a Chart Modifier which performs manual processing of touch events
Inheritance
TouchModifierBase
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class TouchModifierBase extends ChartModifierBase
Constructors
TouchModifierBase()
Declaration
public TouchModifierBase()
Methods
onTouch(ModifierTouchEventArgs args)
Declaration
public void onTouch(ModifierTouchEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ModifierTouchEventArgs | args |
Overrides
onTouchCancel(ModifierTouchEventArgs args)
Called when MotionEvent#ACTION_CANCEL event occurs
Declaration
protected boolean onTouchCancel(ModifierTouchEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ModifierTouchEventArgs | args | The touch event args for this event |
Returns
Type | Description |
---|---|
boolean | True if the event was handled, false otherwise. |
onTouchDown(ModifierTouchEventArgs args)
Called when MotionEvent#ACTION_DOWN event occurs
Declaration
protected boolean onTouchDown(ModifierTouchEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ModifierTouchEventArgs | args | The touch event args for this event |
Returns
Type | Description |
---|---|
boolean | True if the event was handled, false otherwise. |
onTouchMove(ModifierTouchEventArgs args)
Called when MotionEvent#ACTION_MOVE event occurs
Declaration
protected boolean onTouchMove(ModifierTouchEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ModifierTouchEventArgs | args | The touch event args for this event |
Returns
Type | Description |
---|---|
boolean | True if the event was handled, false otherwise. |
onTouchUp(ModifierTouchEventArgs args)
Called when MotionEvent#ACTION_UP event occurs
Declaration
protected boolean onTouchUp(ModifierTouchEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ModifierTouchEventArgs | args | The touch event args for this event |
Returns
Type | Description |
---|---|
boolean | True if the event was handled, false otherwise. |