-
- All Implemented Interfaces:
-
android.view.GestureDetector.OnContextClickListener,android.view.GestureDetector.OnDoubleTapListener,android.view.GestureDetector.OnGestureListener,android.view.View.OnTouchListener
public abstract class ChartTouchListener<T extends Chart<out Object>> extends GestureDetector.SimpleOnGestureListener implements View.OnTouchListener
Created by philipp on 12/06/15.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumChartTouchListener.ChartGesture
-
Constructor Summary
Constructors Constructor Description ChartTouchListener(T chart)
-
Method Summary
Modifier and Type Method Description voidstartAction(MotionEvent me)Calls the OnChartGestureListener to do the start callback voidendAction(MotionEvent me)Calls the OnChartGestureListener to do the end callback voidsetLastHighlighted(Highlight high)Sets the last value that was highlighted via touch. intgetTouchMode()returns the touch mode the listener is currently in ChartTouchListener.ChartGesturegetLastGesture()Returns the last gesture that has been performed on the chart. -
Methods inherited from class android.view.GestureDetector.SimpleOnGestureListener
onContextClick, onDoubleTap, onDoubleTapEvent, onDown, onFling, onLongPress, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp -
Methods inherited from class android.view.View.OnTouchListener
onTouch -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChartTouchListener
ChartTouchListener(T chart)
-
-
Method Detail
-
startAction
void startAction(MotionEvent me)
Calls the OnChartGestureListener to do the start callback
-
endAction
void endAction(MotionEvent me)
Calls the OnChartGestureListener to do the end callback
-
setLastHighlighted
void setLastHighlighted(Highlight high)
Sets the last value that was highlighted via touch.
-
getTouchMode
int getTouchMode()
returns the touch mode the listener is currently in
-
getLastGesture
ChartTouchListener.ChartGesture getLastGesture()
Returns the last gesture that has been performed on the chart.
-
-
-
-