Interface GeoMapPositioned
-
- All Known Implementing Classes:
GeoMap,GeoMapHelper,InternalGeoMap
public interface GeoMapPositionedInterface for managing position and zoom level- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.swt.graphics.PointgetMapPosition()Gets the position of the upper left corner of the map.intgetMaxZoom()Gets the maximum supported zoom levelintgetZoom()Gets the current zoom levelvoidsetMapPosition(int x, int y)Sets the position of the upper left corner of the map.voidsetZoom(int zoom)Sets the current zoom level
-
-
-
Method Detail
-
getMapPosition
org.eclipse.swt.graphics.Point getMapPosition()
Gets the position of the upper left corner of the map. The resolution depends on the zoom level.- Returns:
- the position of the upper left corner of the map
-
setMapPosition
void setMapPosition(int x, int y)Sets the position of the upper left corner of the map. The resolution depends on the zoom level.- Parameters:
x- the x coordinatey- the y coordinate
-
getZoom
int getZoom()
Gets the current zoom level- Returns:
- the current zoom level
-
getMaxZoom
int getMaxZoom()
Gets the maximum supported zoom level- Returns:
- the maximum zoom level
-
setZoom
void setZoom(int zoom)
Sets the current zoom level- Parameters:
zoom- the new zoom level
-
-