public class MapViewOnScaleGestureListener extends java.lang.Object implements OnScaleGestureListener
Constructor and Description |
---|
MapViewOnScaleGestureListener(MapView view,
float halfResolutionFactor) |
Modifier and Type | Method and Description |
---|---|
boolean |
isInProgress() |
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.
|
public MapViewOnScaleGestureListener(MapView view, float halfResolutionFactor)
public boolean isInProgress()
isInProgress
in interface OnScaleGestureListener
public boolean onScaleBegin(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
onScaleBegin
in interface ScaleGestureDetector.OnScaleGestureListener
detector
- The detector reporting the event - use this to
retrieve extended info about event state.public boolean onScale(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
onScale
in interface ScaleGestureDetector.OnScaleGestureListener
detector
- The detector reporting the event - use this to
retrieve extended info about event state.public void onScaleEnd(ScaleGestureDetector detector)
ScaleGestureDetector.OnScaleGestureListener
ScaleGestureDetector.getFocusX()
and ScaleGestureDetector.getFocusY()
will return focal point
of the pointers remaining on the screen.onScaleEnd
in interface ScaleGestureDetector.OnScaleGestureListener
detector
- The detector reporting the event - use this to
retrieve extended info about event state.