Interface GeoMapPositioned

All Known Implementing Classes:
GeoMap, GeoMapHelper, InternalGeoMap

public interface GeoMapPositioned
Interface for managing position and zoom level
Since:
3.3
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.graphics.Point getMapPosition()
    Gets the position of the upper left corner of the map.
    int getMaxZoom()
    Gets the maximum supported zoom level
    int getMinZoom()
    Gets the minimum supported zoom level
    int getZoom()
    Gets the current zoom level
    void setMapPosition​(int x, int y)
    Sets the position of the upper left corner of the map.
    void setZoom​(int zoom)
    Sets the current zoom level
  • Method Details

    • 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 coordinate
      y - the y coordinate
    • getZoom

      int getZoom()
      Gets the current zoom level
      Returns:
      the current zoom level
    • getMinZoom

      int getMinZoom()
      Gets the minimum supported zoom level
      Returns:
      the minimum 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