public class

ChartGestureListener

extends Object
implements GestureDetector.OnGestureListener
java.lang.Object
   ↳ com.artfulbits.aiCharts.ChartGestureListener

Class Overview

Provides default logic for gesture handling.

Summary

Constants
int ANIMATED_PANNING_FLAG Animated panning flag.
int HORIZONTAL_PANNING_FLAG Horizontal panning flag.
int NONE_FLAG No panning flag.
int VERTICAL_PANNING_FLAG Vertical panning flag.
Public Constructors
ChartGestureListener(ChartView chartView)
Constructor.
ChartGestureListener(ChartView chartView, int flags)
Constructor.
Public Methods
int getFlags()
Gets settings flags.@return
boolean onDown(MotionEvent e)
boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
void onLongPress(MotionEvent e)
boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
void onShowPress(MotionEvent e)
boolean onSingleTapUp(MotionEvent e)
void setFlags(int flags)
Sets settings flags
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.view.GestureDetector.OnGestureListener

Constants

public static final int ANIMATED_PANNING_FLAG

Animated panning flag.

Constant Value: 4 (0x00000004)

public static final int HORIZONTAL_PANNING_FLAG

Horizontal panning flag.

Constant Value: 2 (0x00000002)

public static final int NONE_FLAG

No panning flag.

Constant Value: 0 (0x00000000)

public static final int VERTICAL_PANNING_FLAG

Vertical panning flag.

Constant Value: 1 (0x00000001)

Public Constructors

public ChartGestureListener (ChartView chartView)

Constructor.

Parameters
chartView ChartView instance.

public ChartGestureListener (ChartView chartView, int flags)

Constructor.

Parameters
chartView ChartView instance.
flags flags to enable default behavior.

Public Methods

public int getFlags ()

Gets settings flags.@return

public boolean onDown (MotionEvent e)

public boolean onFling (MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)

public void onLongPress (MotionEvent e)

public boolean onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)

public void onShowPress (MotionEvent e)

public boolean onSingleTapUp (MotionEvent e)

public void setFlags (int flags)

Sets settings flags