public interface Moveable extends Zoomable
maxZoomProperty, minZoomProperty, zoomProperty
Modifier and Type | Method and Description |
---|---|
void |
centerMap()
Centers the map: latitude and longitude are zero.
|
java.awt.Point |
getCenter()
This method returns the center of the map as a point.
X&Y position of the center of this map on the world in screen pixels for the current zoom level. |
int |
getMapHeight() |
int |
getMapWidth() |
javafx.scene.Group |
getTilesGroup() |
boolean |
isMapMoveable()
This method should return
true if the map can be moved otherwise false. |
void |
moveMap(int x,
int y)
Moves the map to the given coordinates so that x and y is in the center.
|
maxZoomProperty, minZoomProperty, zoomIn, zoomOut, zoomProperty
void moveMap(int x, int y)
x
- y
- java.awt.Point getCenter()
int getMapHeight()
int getMapWidth()
boolean isMapMoveable()
true
if the map can be moved otherwise false.void centerMap()
javafx.scene.Group getTilesGroup()