Package com.sothawo.mapjfx.event
Class MapViewEvent
- java.lang.Object
-
- java.util.EventObject
-
- javafx.event.Event
-
- com.sothawo.mapjfx.event.MapViewEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class MapViewEvent extends javafx.event.Event
Event class for MapView events.- Author:
- P.J. Meisch ([email protected]).
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static javafx.event.EventType<MapViewEvent>
ANY
base event typestatic javafx.event.EventType<MapViewEvent>
MAP_BOUNDING_EXTENT
vounding extent changed in mapstatic javafx.event.EventType<MapViewEvent>
MAP_CLICKED
coordinate clicked in mapstatic javafx.event.EventType<MapViewEvent>
MAP_EXTENT
extent selected in mapstatic javafx.event.EventType<MapViewEvent>
MAP_POINTER_MOVED
pointer moved over mapstatic javafx.event.EventType<MapViewEvent>
MAP_RIGHTCLICKED
coordinate context clicked in map
-
Constructor Summary
Constructors Constructor Description MapViewEvent(javafx.event.EventType<? extends MapViewEvent> eventType, Coordinate coordinate)
creates an CoordinateEvent of the given type and name for a clicked object.MapViewEvent(javafx.event.EventType<? extends MapViewEvent> eventType, Extent extent)
creates an ExtentEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinate
getCoordinate()
Extent
getExtent()
-
-
-
Field Detail
-
ANY
public static final javafx.event.EventType<MapViewEvent> ANY
base event type
-
MAP_CLICKED
public static final javafx.event.EventType<MapViewEvent> MAP_CLICKED
coordinate clicked in map
-
MAP_POINTER_MOVED
public static final javafx.event.EventType<MapViewEvent> MAP_POINTER_MOVED
pointer moved over map
-
MAP_RIGHTCLICKED
public static final javafx.event.EventType<MapViewEvent> MAP_RIGHTCLICKED
coordinate context clicked in map
-
MAP_EXTENT
public static final javafx.event.EventType<MapViewEvent> MAP_EXTENT
extent selected in map
-
MAP_BOUNDING_EXTENT
public static final javafx.event.EventType<MapViewEvent> MAP_BOUNDING_EXTENT
vounding extent changed in map
-
-
Constructor Detail
-
MapViewEvent
public MapViewEvent(javafx.event.EventType<? extends MapViewEvent> eventType, Coordinate coordinate)
creates an CoordinateEvent of the given type and name for a clicked object.- Parameters:
eventType
- typecoordinate
- coordinate
-
MapViewEvent
public MapViewEvent(javafx.event.EventType<? extends MapViewEvent> eventType, Extent extent)
creates an ExtentEvent.- Parameters:
eventType
- typeextent
- the extent
-
-
Method Detail
-
getExtent
public Extent getExtent()
- Returns:
- the extent for a
MAP_EXTENT
event.
-
getCoordinate
public Coordinate getCoordinate()
- Returns:
- the coordinate where the event happend.
-
-