Class 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
    • 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()  
      • Methods inherited from class javafx.event.Event

        clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 - type
        coordinate - coordinate
      • MapViewEvent

        public MapViewEvent​(javafx.event.EventType<? extends MapViewEvent> eventType,
                            Extent extent)
        creates an ExtentEvent.
        Parameters:
        eventType - type
        extent - 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.