public class MoveGestureDetector extends BaseGestureDetector
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
MoveGestureDetector.OnMoveGestureListener
Listener which must be implemented which is used by MoveGestureDetector
to perform callbacks to any implementing class which is registered to a
MoveGestureDetector via the constructor.
|
static class |
MoveGestureDetector.SimpleOnMoveGestureListener
Helper class which may be extended and where the methods may be
implemented.
|
context, currEvent, currPressure, gestureInProgress, PRESSURE_THRESHOLD, prevEvent, prevPressure, timeDelta| 构造器和说明 |
|---|
MoveGestureDetector(android.content.Context context,
MoveGestureDetector.OnMoveGestureListener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
android.graphics.PointF |
getFocusDelta() |
float |
getFocusX() |
float |
getFocusY() |
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 |
updateStateByEvent(android.view.MotionEvent curr) |
getEventTime, getTimeDelta, isInProgress, onTouchEvent, resetStatepublic MoveGestureDetector(android.content.Context context,
MoveGestureDetector.OnMoveGestureListener listener)
protected void handleStartProgressEvent(int actionCode,
android.view.MotionEvent event)
BaseGestureDetectorhandleStartProgressEvent 在类中 BaseGestureDetectoractionCode - Action Code from MotionEventevent - MotionEventprotected void handleInProgressEvent(int actionCode,
android.view.MotionEvent event)
BaseGestureDetectorhandleInProgressEvent 在类中 BaseGestureDetectoractionCode - Action Code from MotionEventevent - MotionEventprotected void updateStateByEvent(android.view.MotionEvent curr)
public float getFocusX()
public float getFocusY()
public android.graphics.PointF getFocusDelta()