Class GestureModifierBase
Defines the base class to a Chart Modifier which detects standard touch gestures detected by GestureDetector
Inheritance
GestureModifierBase
Implements
android.view.GestureDetector.OnDoubleTapListener
android.view.GestureDetector.OnGestureListener
Namespace:
Assembly: .dll
Syntax
public abstract class GestureModifierBase extends ChartModifierBase implements GestureDetector.OnDoubleTapListener, GestureDetector.OnGestureListener
Constructors
GestureModifierBase()
Declaration
public GestureModifierBase()
Methods
attachTo(IServiceContainer services)
Declaration
public void attachTo(IServiceContainer services)
Parameters
Overrides
detach()
Declaration
Overrides
getOriginalTouchEvent()
Declaration
protected final ModifierTouchEventArgs getOriginalTouchEvent()
Returns
onCancel(MotionEvent e)
Called when MotionEvent#ACTION_CANCEL event occurs
Declaration
protected void onCancel(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
The MotionEvent instance
|
onDoubleTap(MotionEvent e)
Declaration
public boolean onDoubleTap(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
|
Returns
onDoubleTapEvent(MotionEvent e)
Declaration
public boolean onDoubleTapEvent(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
|
Returns
onDown(MotionEvent e)
Declaration
public boolean onDown(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
|
Returns
onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
Declaration
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e1 |
|
| android.view.MotionEvent |
e2 |
|
| float |
velocityX |
|
| float |
velocityY |
|
Returns
onLongPress(MotionEvent e)
Declaration
public void onLongPress(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
|
Declaration
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e1 |
|
| android.view.MotionEvent |
e2 |
|
| float |
distanceX |
|
| float |
distanceY |
|
Returns
onShowPress(MotionEvent e)
Declaration
public void onShowPress(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
|
onSingleTapConfirmed(MotionEvent e)
Declaration
public boolean onSingleTapConfirmed(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
|
Returns
onSingleTapUp(MotionEvent e)
Declaration
public boolean onSingleTapUp(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
|
Returns
onTouch(ModifierTouchEventArgs args)
Declaration
public void onTouch(ModifierTouchEventArgs args)
Parameters
Overrides
onUp(MotionEvent e)
Called when MotionEvent#ACTION_UP event occurs
Declaration
protected void onUp(MotionEvent e)
Parameters
| Type |
Name |
Description |
| android.view.MotionEvent |
e |
The MotionEvent instance
|
Implements
android.view.GestureDetector.OnDoubleTapListener
android.view.GestureDetector.OnGestureListener