Class MapPaneEvent

    • Constructor Detail

      • MapPaneEvent

        public MapPaneEvent​(MapPane source,
                            MapPaneEvent.Type type)
        Constructor for an event with no associated data
        Parameters:
        source - the map pane issuing this event
        type - the type of event
      • MapPaneEvent

        public MapPaneEvent​(MapPane source,
                            MapPaneEvent.Type type,
                            Object data)
        Constructor for an event with associated data. The new event object takes ownership of the data object.
        Parameters:
        source - the map pane issuing this event
        type - the type of event
        data - the event data
    • Method Detail

      • getSource

        public MapPane getSource()
        Gets the map pane which published this event.
        Overrides:
        getSource in class EventObject
        Returns:
        the source map pane
      • getType

        public MapPaneEvent.Type getType()
        Get the type of this event
        Returns:
        event type
      • getData

        public Object getData()
        Get the data associated with this event, if any
        Returns:
        event data or null if not applicable