de.fhpotsdam.unfolding.events
Class ZoomMapEvent
java.lang.Object
java.util.EventObject
de.fhpotsdam.unfolding.events.MapEvent
de.fhpotsdam.unfolding.events.ZoomMapEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ZoomMapEvent
- extends MapEvent
A map event for all zoom events, such as (relative) zoomBy and (absolute) zoomTo.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ZoomMapEvent(java.lang.Object source,
java.lang.String mapId)
|
ZoomMapEvent(java.lang.Object source,
java.lang.String mapId,
java.lang.String subType)
|
ZoomMapEvent(java.lang.Object source,
java.lang.String mapId,
java.lang.String subType,
int zoom)
|
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
protected static org.apache.log4j.Logger log
TYPE_ZOOM
public static final java.lang.String TYPE_ZOOM
- The internal type of this ZoomMapEvent.
- See Also:
- Constant Field Values
ZOOM_BY_LEVEL
public static final java.lang.String ZOOM_BY_LEVEL
- See Also:
- Constant Field Values
ZOOM_TO_LEVEL
public static final java.lang.String ZOOM_TO_LEVEL
- See Also:
- Constant Field Values
ZOOM_BY
public static final java.lang.String ZOOM_BY
- See Also:
- Constant Field Values
ZOOM_TO
public static final java.lang.String ZOOM_TO
- See Also:
- Constant Field Values
zoomLevel
protected int zoomLevel
zoomLevelDelta
protected int zoomLevelDelta
zoom
protected float zoom
zoomDelta
protected float zoomDelta
transformationCenterLocation
protected Location transformationCenterLocation
- Center to zoom around. Will be used as innerTransCenter (innerZoom).
ZoomMapEvent
public ZoomMapEvent(java.lang.Object source,
java.lang.String mapId)
ZoomMapEvent
public ZoomMapEvent(java.lang.Object source,
java.lang.String mapId,
java.lang.String subType)
ZoomMapEvent
public ZoomMapEvent(java.lang.Object source,
java.lang.String mapId,
java.lang.String subType,
int zoom)
getZoomLevel
public int getZoomLevel()
setZoomLevel
public void setZoomLevel(int zoomLevel)
getZoomLevelDelta
public int getZoomLevelDelta()
setZoomLevelDelta
public void setZoomLevelDelta(int zoomLevelDelta)
getZoom
public float getZoom()
setZoom
public void setZoom(float zoom)
getZoomDelta
public float getZoomDelta()
setZoomDelta
public void setZoomDelta(float zoomDelta)
getTransformationCenterLocation
public Location getTransformationCenterLocation()
getCenter
public Location getCenter()
- Returns the center of the zoom event, i.e. around which geo-location the map was zoomed in or out.
- Returns:
- The center location.
setTransformationCenterLocation
public void setTransformationCenterLocation(Location transformationCenterLocation)
executeManipulationFor
public void executeManipulationFor(UnfoldingMap map)
- Specified by:
executeManipulationFor
in class MapEvent