org.geotools.swing.event
Class MapPaneEvent
Object
EventObject
MapPaneEvent
- All Implemented Interfaces:
- Serializable
public class MapPaneEvent
- extends EventObject
An event class used by JMapPane
to signal changes of
state to listeners.
- Since:
- 2.6
- Author:
- Michael Bedward
- See Also:
MapPaneListener
,
Serialized Form
- Module:
modules/unsupported/swing (gt-swing.jar)
MapPaneEvent
public MapPaneEvent(JMapPane source,
MapPaneEvent.Type type)
- Constructor for an event with no associated data
- Parameters:
source
- the map pane issuing this eventtype
- the type of event
MapPaneEvent
public MapPaneEvent(JMapPane 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 eventtype
- the type of eventdata
- the event data
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
Copyright © 1996-2010 Geotools. All Rights Reserved.