public class RotateGestureDetector extends TwoFingerGestureDetector
| 限定符和类型 | 类和说明 |
|---|---|
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| 构造器和说明 |
|---|
RotateGestureDetector(android.content.Context context,
RotateGestureDetector.OnRotateGestureListener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 TwoFingerGestureDetectoractionCode - Action Code from MotionEventevent - MotionEventprotected void handleInProgressEvent(int actionCode,
android.view.MotionEvent event)
BaseGestureDetectorhandleInProgressEvent 在类中 TwoFingerGestureDetectoractionCode - Action Code from MotionEventevent - MotionEventprotected void resetState()
resetState 在类中 BaseGestureDetectorpublic float getRotationDegreesDelta()