public class MapPaneEvent extends EventObject
MapPane
to signal changes of state to listeners.MapPaneListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
MapPaneEvent.Type
Type of MapPane event
|
source
Constructor and Description |
---|
MapPaneEvent(MapPane source,
MapPaneEvent.Type type)
Constructor for an event with no associated data
|
MapPaneEvent(MapPane source,
MapPaneEvent.Type type,
Object data)
Constructor for an event with associated data.
|
Modifier and Type | Method and Description |
---|---|
Object |
getData()
Get the data associated with this event, if any
|
MapPane |
getSource()
Gets the map pane which published this event.
|
MapPaneEvent.Type |
getType()
Get the type of this event
|
toString
public MapPaneEvent(MapPane source, MapPaneEvent.Type type)
source
- the map pane issuing this eventtype
- the type of eventpublic MapPaneEvent(MapPane source, MapPaneEvent.Type type, Object data)
source
- the map pane issuing this eventtype
- the type of eventdata
- the event datapublic MapPane getSource()
getSource
in class EventObject
public MapPaneEvent.Type getType()
public Object getData()
null
if not applicableCopyright © 1996–2019 Geotools. All rights reserved.