public class RotateGestureDetector extends TwoFingerGestureDetector
| Modifier and Type | Class and Description |
|---|---|
static interface |
RotateGestureDetector.OnRotateGestureListener
Listener which must be implemented which is used by RotateGestureDetector
to perform callbacks to any implementing class which is registered to a
RotateGestureDetector via the constructor.
|
static class |
RotateGestureDetector.SimpleOnRotateGestureListener
Helper class which may be extended and where the methods may be
implemented.
|
currFingerDiffX, currFingerDiffY, prevFingerDiffX, prevFingerDiffYcontext, currEvent, currPressure, gestureInProgress, PRESSURE_THRESHOLD, prevEvent, prevPressure, timeDelta| Constructor and Description |
|---|
RotateGestureDetector(android.content.Context context,
RotateGestureDetector.OnRotateGestureListener listener) |
| Modifier and Type | Method and Description |
|---|---|
float |
getRotationDegreesDelta()
Return the rotation difference from the previous rotate event to the
current event.
|
protected void |
handleInProgressEvent(int actionCode,
android.view.MotionEvent event)
Called when the current event occurred when a gesture IS in progress.
|
protected void |
handleStartProgressEvent(int actionCode,
android.view.MotionEvent event)
Called when the current event occurred when NO gesture is in progress
yet.
|
protected void |
resetState() |
determineFocalPoint, getCurrentSpan, getFocusX, getFocusY, getPreviousSpan, getRawX, getRawY, isSloppyGesture, updateStateByEventgetEventTime, getTimeDelta, isInProgress, onTouchEventpublic RotateGestureDetector(android.content.Context context,
RotateGestureDetector.OnRotateGestureListener listener)
protected void handleStartProgressEvent(int actionCode,
android.view.MotionEvent event)
BaseGestureDetectorhandleStartProgressEvent in class TwoFingerGestureDetectoractionCode - Action Code from MotionEventevent - MotionEventprotected void handleInProgressEvent(int actionCode,
android.view.MotionEvent event)
BaseGestureDetectorhandleInProgressEvent in class TwoFingerGestureDetectoractionCode - Action Code from MotionEventevent - MotionEventprotected void resetState()
resetState in class BaseGestureDetectorpublic float getRotationDegreesDelta()