org.geotools.swing.event
Class MapPaneEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.geotools.swing.event.MapPaneEvent
All Implemented Interfaces:
java.io.Serializable

public class MapPaneEvent
extends java.util.EventObject

An event class used by JMapPane to signal changes of state to listeners.

Since:
2.6
Version:
$Id: MapPaneEvent.java 34243 2009-10-26 07:07:08Z mbedward $
Author:
Michael Bedward
See Also:
MapPaneListener, Serialized Form

Nested Class Summary
static class MapPaneEvent.Type
          Type of MapPane event
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MapPaneEvent(JMapPane source, MapPaneEvent.Type type)
          Constructor for an event with no associated data
MapPaneEvent(JMapPane source, MapPaneEvent.Type type, java.lang.Object data)
          Constructor for an event with associated data.
 
Method Summary
 java.lang.Object getData()
          Get the data associated with this event, if any
 MapPaneEvent.Type getType()
          Get the type of this event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapPaneEvent

public MapPaneEvent(JMapPane 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(JMapPane source,
                    MapPaneEvent.Type type,
                    java.lang.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

getType

public MapPaneEvent.Type getType()
Get the type of this event

Returns:
event type

getData

public java.lang.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.