|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoak.util.ScaleGestureDetector.SimpleOnScaleGestureListener
public static class ScaleGestureDetector.SimpleOnScaleGestureListener
A convenience class to extend when you only want to listen for a subset
of scaling-related events. This implements all methods in
ScaleGestureDetector.OnScaleGestureListener but does nothing.
ScaleGestureDetector.OnScaleGestureListener.onScale(ScaleGestureDetector) returns
false so that a subclass can retrieve the accumulated scale
factor in an overridden onScaleEnd.
ScaleGestureDetector.OnScaleGestureListener.onScaleBegin(ScaleGestureDetector) returns
true.
| Constructor Summary | |
|---|---|
ScaleGestureDetector.SimpleOnScaleGestureListener()
|
|
| Method Summary | |
|---|---|
boolean |
onScale(ScaleGestureDetector detector)
Responds to scaling events for a gesture in progress. |
boolean |
onScaleBegin(ScaleGestureDetector detector)
Responds to the beginning of a scaling gesture. |
void |
onScaleEnd(ScaleGestureDetector detector)
Responds to the end of a scale gesture. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScaleGestureDetector.SimpleOnScaleGestureListener()
| Method Detail |
|---|
public boolean onScale(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
onScale in interface ScaleGestureDetector.OnScaleGestureListenerdetector - The detector reporting the event - use this to
retrieve extended info about event state.
public boolean onScaleBegin(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
onScaleBegin in interface ScaleGestureDetector.OnScaleGestureListenerdetector - The detector reporting the event - use this to
retrieve extended info about event state.
public void onScaleEnd(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListenerScaleGestureDetector.getFocusX()
and ScaleGestureDetector.getFocusY() will return the location
of the pointer remaining on the screen.
onScaleEnd in interface ScaleGestureDetector.OnScaleGestureListenerdetector - The detector reporting the event - use this to
retrieve extended info about event state.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||