public class RotateGestureDetector extends ProgressiveGesture<RotateGestureDetector.OnRotateGestureListener>
| Modifier and Type | Class and Description |
|---|---|
static interface |
RotateGestureDetector.OnRotateGestureListener
Listener for rotate gesture callbacks.
|
static class |
RotateGestureDetector.SimpleOnRotateGestureListener |
context, listener, windowManager| Constructor and Description |
|---|
RotateGestureDetector(android.content.Context context,
AndroidGesturesManager gesturesManager) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
analyzeMovement() |
protected boolean |
canExecute(int invokedGestureType) |
protected void |
gestureStopped() |
float |
getAngleThreshold()
Get the threshold angle between first and current fingers position
for this detector to actually qualify it as a rotation gesture.
|
float |
getDeltaSinceLast()
Returns last rotation change difference in degrees
calculated in
RotateGestureDetector.OnRotateGestureListener.onRotate(RotateGestureDetector, float, float) |
float |
getDeltaSinceStart()
Returns rotation change in degrees since the start of the gesture.
|
protected java.util.Set<java.lang.Integer> |
provideHandledTypes() |
protected void |
reset() |
void |
setAngleThreshold(float angleThreshold)
Set the threshold angle between first and current fingers position
for this detector to actually qualify it as a rotation gesture.
|
analyzeEvent, gestureStarted, interrupt, isInProgress, setEnabledgetCurrentSpan, getCurrentSpanX, getCurrentSpanY, getFocalPoint, getPointersCount, getPreviousSpan, getPreviousSpanX, getPreviousSpanY, getRequiredPointersCount, getSpanThreshold, isSloppyGesture, setSpanThreshold, setSpanThresholdResourcegetCurrentEvent, getGestureDuration, getPreviousEvent, isEnabled, onTouchEvent, removeListener, setListenerpublic RotateGestureDetector(android.content.Context context,
AndroidGesturesManager gesturesManager)
protected java.util.Set<java.lang.Integer> provideHandledTypes()
provideHandledTypes in class ProgressiveGesture<RotateGestureDetector.OnRotateGestureListener>protected boolean analyzeMovement()
analyzeMovement in class MultiFingerGesture<RotateGestureDetector.OnRotateGestureListener>protected boolean canExecute(int invokedGestureType)
canExecute in class MultiFingerGesture<RotateGestureDetector.OnRotateGestureListener>protected void gestureStopped()
gestureStopped in class ProgressiveGesture<RotateGestureDetector.OnRotateGestureListener>protected void reset()
reset in class MultiFingerGesture<RotateGestureDetector.OnRotateGestureListener>public float getDeltaSinceStart()
public float getDeltaSinceLast()
RotateGestureDetector.OnRotateGestureListener.onRotate(RotateGestureDetector, float, float)public float getAngleThreshold()
public void setAngleThreshold(float angleThreshold)
angleThreshold - angle threshold for rotation gesture