@UiThread public class RotateGestureDetector extends ProgressiveGesture<RotateGestureDetector.OnRotateGestureListener>
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
RotateGestureDetector.OnRotateGestureListener
Listener for rotate gesture callbacks.
|
static class |
RotateGestureDetector.SimpleOnRotateGestureListener |
context, listener| 构造器和说明 |
|---|
RotateGestureDetector(android.content.Context context,
PalmapGesturesManager gesturesManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, setSpanThresholdResource, setSpanThresholdResourcegetCurrentEvent, getGestureDuration, getPreviousEvent, isEnabled, onTouchEvent, removeListener, setListenerpublic RotateGestureDetector(android.content.Context context,
PalmapGesturesManager gesturesManager)
@NonNull protected java.util.Set<java.lang.Integer> provideHandledTypes()
protected boolean analyzeMovement()
protected boolean canExecute(int invokedGestureType)
protected void gestureStopped()
protected void reset()
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