public class PieRadarChartTouchListener extends ChartTouchListener<PieRadarChartBase<?>>
ChartTouchListener.ChartGestureDRAG, mChart, mGestureDetector, mLastGesture, mLastHighlighted, mTouchMode, NONE, PINCH_ZOOM, POST_ZOOM, ROTATE, X_ZOOM, Y_ZOOM| Constructor and Description |
|---|
PieRadarChartTouchListener(PieRadarChartBase<?> chart) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeScroll() |
void |
onLongPress(android.view.MotionEvent me) |
boolean |
onSingleTapConfirmed(android.view.MotionEvent e) |
boolean |
onSingleTapUp(android.view.MotionEvent e) |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
setGestureStartAngle(float x,
float y)
sets the starting angle of the rotation, this is only used by the touch
listener, x and y is the touch position
|
void |
stopDeceleration()
Sets the deceleration-angular-velocity to 0f
|
void |
updateGestureRotation(float x,
float y)
updates the view rotation depending on the given touch position, also
takes the starting angle into consideration
|
distance, endAction, getLastGesture, getTouchMode, performHighlight, setLastHighlighted, startActionpublic PieRadarChartTouchListener(PieRadarChartBase<?> chart)
public boolean onTouch(android.view.View v,
android.view.MotionEvent event)
public void onLongPress(android.view.MotionEvent me)
onLongPress in interface android.view.GestureDetector.OnGestureListeneronLongPress in class android.view.GestureDetector.SimpleOnGestureListenerpublic boolean onSingleTapConfirmed(android.view.MotionEvent e)
onSingleTapConfirmed in interface android.view.GestureDetector.OnDoubleTapListeneronSingleTapConfirmed in class android.view.GestureDetector.SimpleOnGestureListenerpublic boolean onSingleTapUp(android.view.MotionEvent e)
onSingleTapUp in interface android.view.GestureDetector.OnGestureListeneronSingleTapUp in class android.view.GestureDetector.SimpleOnGestureListenerpublic void setGestureStartAngle(float x,
float y)
x - y - public void updateGestureRotation(float x,
float y)
x - y - public void stopDeceleration()
public void computeScroll()