Package org.geotools.swing.event
Class MapPaneEvent
Object
EventObject
MapPaneEvent
- All Implemented Interfaces:
Serializable
An event class used by
MapPane to signal changes of state to listeners.- Since:
- 2.6
- Author:
- Michael Bedward
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionMapPaneEvent(MapPane source, MapPaneEvent.Type type) Constructor for an event with no associated dataMapPaneEvent(MapPane source, MapPaneEvent.Type type, Object data) Constructor for an event with associated data. -
Method Summary
Methods inherited from class EventObject
toString
-
Constructor Details
-
MapPaneEvent
Constructor for an event with no associated data- Parameters:
source- the map pane issuing this eventtype- the type of event
-
MapPaneEvent
Constructor for an event with associated data. The new event object takes ownership of the data object.- Parameters:
source- the map pane issuing this eventtype- the type of eventdata- the event data
-
-
Method Details
-
getSource
Gets the map pane which published this event.- Overrides:
getSourcein classEventObject- Returns:
- the source map pane
-
getType
Get the type of this event- Returns:
- event type
-
getData
Get the data associated with this event, if any- Returns:
- event data or
nullif not applicable
-