-
- All Implemented Interfaces:
-
android.view.GestureDetector.OnContextClickListener,android.view.GestureDetector.OnDoubleTapListener,android.view.GestureDetector.OnGestureListener,android.view.View.OnTouchListener
public class PieRadarChartTouchListener extends ChartTouchListener<PieRadarChartBase<out Object>>
Touchlistener for the PieChart.
-
-
Constructor Summary
Constructors Constructor Description PieRadarChartTouchListener(PieRadarChartBase<out Object> chart)
-
Method Summary
Modifier and Type Method Description booleanonTouch(View v, MotionEvent event)voidonLongPress(MotionEvent me)booleanonSingleTapConfirmed(MotionEvent e)booleanonSingleTapUp(MotionEvent e)voidsetGestureStartAngle(float x, float y)sets the starting angle of the rotation, this is only used by the touchlistener, x and y is the touch position voidupdateGestureRotation(float x, float y)updates the view rotation depending on the given touch position, alsotakes the starting angle into consideration voidstopDeceleration()Sets the deceleration-angular-velocity to 0f voidcomputeScroll()-
Methods inherited from class com.github.mikephil.charting.listener.ChartTouchListener
endAction, getLastGesture, getTouchMode, setLastHighlighted, startAction -
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
-
PieRadarChartTouchListener
PieRadarChartTouchListener(PieRadarChartBase<out Object> chart)
-
-
Method Detail
-
onTouch
boolean onTouch(View v, MotionEvent event)
-
onLongPress
void onLongPress(MotionEvent me)
-
onSingleTapConfirmed
boolean onSingleTapConfirmed(MotionEvent e)
-
onSingleTapUp
boolean onSingleTapUp(MotionEvent e)
-
setGestureStartAngle
void setGestureStartAngle(float x, float y)
sets the starting angle of the rotation, this is only used by the touchlistener, x and y is the touch position
-
updateGestureRotation
void updateGestureRotation(float x, float y)
updates the view rotation depending on the given touch position, alsotakes the starting angle into consideration
-
stopDeceleration
void stopDeceleration()
Sets the deceleration-angular-velocity to 0f
-
computeScroll
void computeScroll()
-
-
-
-