Modifier and Type | Field and Description |
---|---|
protected MapView |
source |
protected int |
x |
protected int |
y |
Constructor and Description |
---|
ScrollEvent(MapView source,
int x,
int y)
note coordinates represent integer based scroll coordinates, not latitude/longitude.
|
Modifier and Type | Method and Description |
---|---|
MapView |
getSource()
Return the map which generated this event.
|
int |
getX()
Return the x-coordinate scrolled to.
|
int |
getY()
note coordinates represent integer based scroll coordinates, not latitude/longitude.
|
String |
toString() |
protected MapView source
protected int x
protected int y
public ScrollEvent(MapView source, int x, int y)
MapView.getBoundingBox()
and MapView.getMapCenter()
for that.source
- x
- y
- public MapView getSource()
public int getX()
MapView.getBoundingBox()
and MapView.getMapCenter()
for that.public int getY()
MapView.getBoundingBox()
and MapView.getMapCenter()
for that.