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(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 Set<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, setEnabled
getCurrentSpan, getCurrentSpanX, getCurrentSpanY, getFocalPoint, getPointersCount, getPreviousSpan, getPreviousSpanX, getPreviousSpanY, getRequiredPointersCount, getSpanThreshold, isSloppyGesture, setSpanThreshold, setSpanThresholdResource
getCurrentEvent, getGestureDuration, getPreviousEvent, isEnabled, onTouchEvent, removeListener, setListener
public RotateGestureDetector(Context context, AndroidGesturesManager gesturesManager)
protected Set<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© 2015–2019 Mapbox. All rights reserved.