org.geotools.swt.event
Class MapPaneEvent

Object
  extended by EventObject
      extended by MapPaneEvent
All Implemented Interfaces:
Serializable

public class MapPaneEvent
extends EventObject

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

Author:
Michael Bedward, Andrea Antonello (www.hydrologis.com)
See Also:
Serialized Form

Nested Class Summary
static class MapPaneEvent.Type
          Type of MapPane event
 
Field Summary
 
Fields inherited from class EventObject
source
 
Constructor Summary
MapPaneEvent(SwtMapPane source, MapPaneEvent.Type type)
          Constructor for an event with no associated data.
MapPaneEvent(SwtMapPane 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.
 MapPaneEvent.Type getType()
          Get the type of this event.
 
Methods inherited from class EventObject
getSource, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapPaneEvent

public MapPaneEvent(SwtMapPane 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(SwtMapPane 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 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 Object getData()
Get the data associated with this event, if any.

Returns:
event data or null if not applicable.


Copyright © 1996-2014 Geotools. All Rights Reserved.