public static class MapView.MapEventListenerImplementation extends java.lang.Object implements MapView.MapEventListener
Constructor and Description |
---|
MapView.MapEventListenerImplementation() |
Modifier and Type | Method and Description |
---|---|
void |
onDoubleTap(int x,
int y)
Fires when a user double-taps the MapView
|
void |
onDrag(int x,
int y)
Fires while the MapView is being dragged
|
void |
onFingerDown(int x,
int y)
Fires when a ACTION_DOWN event is raised from the MapView
|
void |
onFingerUp(int x,
int y)
Fires when a ACTION_UP event is raised from the MapView
|
void |
onFling(int sx,
int sy,
int dx,
int dy)
Fires when a user initiates a fling action
|
void |
onFlingComplete(int x,
int y)
Fires when a fling action has completed
|
void |
onPinch(int x,
int y)
Fires while a user is pinching the MapView
|
void |
onPinchComplete(int x,
int y)
Fires when a user completes a pinch action
|
void |
onPinchStart(int x,
int y)
Fires when a user starts a pinch action
|
void |
onRenderComplete()
Fires when the rendering thread has completed updating the visible tiles, but before cleanup
|
void |
onRenderStart()
Fires when the rendering thread has started to update the visible tiles.
|
void |
onScaleChanged(double scale)
Fires when the MapView's scale has updated
|
void |
onScrollChanged(int x,
int y)
Fires when the MapView's scroll position has updated
|
void |
onTap(int x,
int y)
Fires when a user taps the MapView
|
void |
onZoomComplete(double scale)
Fires when a zoom action ends (typically through a pinch of double-tap action,
or by programmatic animated zoom methods.
|
void |
onZoomLevelChanged(int oldZoom,
int currentZoom)
Fires when the MapView should start using a new ZoomLevel
|
void |
onZoomStart(double scale)
Fires when a zoom action starts (typically through a pinch of double-tap action,
or by programmatic animated zoom methods.
|
public MapView.MapEventListenerImplementation()
public void onFingerDown(int x, int y)
onFingerDown
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onFingerUp(int x, int y)
onFingerUp
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onDrag(int x, int y)
onDrag
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onDoubleTap(int x, int y)
onDoubleTap
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onTap(int x, int y)
onTap
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onPinch(int x, int y)
onPinch
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onPinchStart(int x, int y)
onPinchStart
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onPinchComplete(int x, int y)
onPinchComplete
in interface MapView.MapEventListener
x
- (int) the x position of the eventy
- (int) the y position of the eventpublic void onFling(int sx, int sy, int dx, int dy)
onFling
in interface MapView.MapEventListener
sx
- (int) the x position of the start of the flingsy
- (int) the y position of the start of the flingdx
- (int) the x position of the end of the flingdy
- (int) the y position of the end of the flingpublic void onFlingComplete(int x, int y)
onFlingComplete
in interface MapView.MapEventListener
x
- (int) the final x scroll position of the MapView after the flingy
- (int) the final y scroll position of the MapView after the flingpublic void onScaleChanged(double scale)
onScaleChanged
in interface MapView.MapEventListener
scale
- (double) the new scale of the MapView (0-1)public void onScrollChanged(int x, int y)
onScrollChanged
in interface MapView.MapEventListener
x
- (int) the new x scroll position of the MapViewy
- (int) the new y scroll position of the MapViewpublic void onZoomStart(double scale)
onZoomStart
in interface MapView.MapEventListener
scale
- (double) the new scale of the MapView (0-1)public void onZoomComplete(double scale)
onZoomComplete
in interface MapView.MapEventListener
scale
- (double) the new scale of the MapView (0-1)public void onZoomLevelChanged(int oldZoom, int currentZoom)
onZoomLevelChanged
in interface MapView.MapEventListener
oldZoom
- (int) the zoom level the MapView was using before the changecurrentZoom
- (int) the zoom level the MapView has changed topublic void onRenderStart()
onRenderStart
in interface MapView.MapEventListener
public void onRenderComplete()
onRenderComplete
in interface MapView.MapEventListener