java.lang.Object | |
↳ | sofia.view.RotateGestureDetector.SimpleOnRotateGestureListener |
A convenience class to extend when you only want to listen for a subset
of rotation-related events. This implements all methods in
RotateGestureDetector.OnRotateGestureListener
but does nothing.
onRotate(RotateGestureDetector)
returns
false
so that a subclass can retrieve the accumulated rotation
factor in an overridden onRotateEnd.
onRotateBegin(RotateGestureDetector)
returns
true
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RotateGestureDetector.SimpleOnRotateGestureListener() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
onRotate(RotateGestureDetector detector)
Responds to rotation events for a gesture in progress.
| ||||||||||
boolean |
onRotateBegin(RotateGestureDetector detector)
Responds to the beginning of a rotation gesture.
| ||||||||||
void |
onRotateEnd(RotateGestureDetector detector)
Responds to the end of a rotation gesture.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
sofia.view.RotateGestureDetector.OnRotateGestureListener
|
Responds to rotation events for a gesture in progress. Reported by pointer motion.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
---|
Responds to the beginning of a rotation gesture. Reported by new pointers going down.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
---|
Responds to the end of a rotation gesture. Reported by existing pointers going up. Once a rotation has ended, RotateGestureDetector#getFocusX() and RotateGestureDetector#getFocusY() will return the location of the pointer remaining on the screen.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
---|