-
public interface OnChartGestureListenerListener for callbacks when doing gestures on the chart.
-
-
Method Summary
Modifier and Type Method Description abstract voidonChartGestureStart(MotionEvent me, ChartTouchListener.ChartGesture lastPerformedGesture)Callbacks when a touch-gesture has started on the chart (ACTION_DOWN) abstract voidonChartGestureEnd(MotionEvent me, ChartTouchListener.ChartGesture lastPerformedGesture)Callbacks when a touch-gesture has ended on the chart (ACTION_UP, ACTION_CANCEL) abstract voidonChartLongPressed(MotionEvent me)Callbacks when the chart is longpressed. abstract voidonChartDoubleTapped(MotionEvent me)Callbacks when the chart is double-tapped. abstract voidonChartSingleTapped(MotionEvent me)Callbacks when the chart is single-tapped. abstract voidonChartFling(MotionEvent me1, MotionEvent me2, float velocityX, float velocityY)Callbacks then a fling gesture is made on the chart. abstract voidonChartScale(MotionEvent me, float scaleX, float scaleY)Callbacks when the chart is scaled / zoomed via pinch zoom / double-tap gesture. abstract voidonChartTranslate(MotionEvent me, float dX, float dY)Callbacks when the chart is moved / translated via drag gesture. -
-
Method Detail
-
onChartGestureStart
abstract void onChartGestureStart(MotionEvent me, ChartTouchListener.ChartGesture lastPerformedGesture)
Callbacks when a touch-gesture has started on the chart (ACTION_DOWN)
-
onChartGestureEnd
abstract void onChartGestureEnd(MotionEvent me, ChartTouchListener.ChartGesture lastPerformedGesture)
Callbacks when a touch-gesture has ended on the chart (ACTION_UP, ACTION_CANCEL)
-
onChartLongPressed
abstract void onChartLongPressed(MotionEvent me)
Callbacks when the chart is longpressed.
-
onChartDoubleTapped
abstract void onChartDoubleTapped(MotionEvent me)
Callbacks when the chart is double-tapped.
-
onChartSingleTapped
abstract void onChartSingleTapped(MotionEvent me)
Callbacks when the chart is single-tapped.
-
onChartFling
abstract void onChartFling(MotionEvent me1, MotionEvent me2, float velocityX, float velocityY)
Callbacks then a fling gesture is made on the chart.
-
onChartScale
abstract void onChartScale(MotionEvent me, float scaleX, float scaleY)
Callbacks when the chart is scaled / zoomed via pinch zoom / double-tap gesture.
- Parameters:
scaleX- scalefactor on the x-axisscaleY- scalefactor on the y-axis
-
onChartTranslate
abstract void onChartTranslate(MotionEvent me, float dX, float dY)
Callbacks when the chart is moved / translated via drag gesture.
- Parameters:
dX- translation distance on the x-axisdY- translation distance on the y-axis
-
-
-
-