|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectEventObject
MapPaneEvent
public class MapPaneEvent
An event class used by MapPane
to signal changes of
state to listeners.
MapPaneListener
,
Serialized FormNested Class Summary | |
---|---|
static class |
MapPaneEvent.Type
Type of MapPane event |
Field Summary |
---|
Fields inherited from class EventObject |
---|
source |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class EventObject |
---|
toString |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 dataMethod Detail |
---|
public MapPane getSource()
getSource
in class EventObject
public MapPaneEvent.Type getType()
public Object getData()
null
if not applicable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |