Interface GeoMapListener
public interface GeoMapListener
Interface for listening to changes to the state of the GeoMap UI
-
Method Summary
Modifier and Type Method Description voidcenterChanged(GeoMap geoMap)Called whenever the center of the GeoMap changes, e.g. when panning.voidzoomChanged(GeoMap geoMap)Called whenever the zoom level changes.
-
Method Details
-
centerChanged
Called whenever the center of the GeoMap changes, e.g. when panning. This will happen in general for calls toGeoMap.setMapPosition(org.eclipse.swt.graphics.Point),GeoMap.translateMapPosition(int, int)andGeoMap.setCenterPosition(org.eclipse.swt.graphics.Point)A call to higher-level methods likeGeoMap.zoomTo(org.eclipse.swt.graphics.Rectangle)may result in many firings.- Parameters:
geoMap- the geoMap that has changed
-
zoomChanged
Called whenever the zoom level changes. This will happen in general for calls toGeoMap.setZoom(int),GeoMap.zoomIn(org.eclipse.swt.graphics.Point)andGeoMap.zoomOut(org.eclipse.swt.graphics.Point)A call to higher-level methods likeGeoMap.zoomTo(org.eclipse.swt.graphics.Rectangle)may result in many firings.- Parameters:
geoMap- the geoMap that has changed
-