net.refractions.udig.project
Class MapEvent

java.lang.Object
  extended by net.refractions.udig.project.UDIGEvent
      extended by net.refractions.udig.project.MapEvent

public class MapEvent
extends UDIGEvent

An event that indicates a change to the map. See the Enum for more information of the types of events taht are raised.

Since:
1.1.0
Author:
Jesse
See Also:
MapEvent.MapEventType

Nested Class Summary
static class MapEvent.MapEventType
           
 
Field Summary
 
Fields inherited from class net.refractions.udig.project.UDIGEvent
newValue, oldValue, source
 
Constructor Summary
MapEvent(IMap source, MapEvent.MapEventType type, java.lang.Object newValue, java.lang.Object oldValue)
          Construct EditManagerEvent.
 
Method Summary
 IMap getSource()
          Gets the source of the event.
 MapEvent.MapEventType getType()
          Gets the type of the event.
 java.lang.String toString()
           
 
Methods inherited from class net.refractions.udig.project.UDIGEvent
getNewValue, getOldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapEvent

public MapEvent(IMap source,
                MapEvent.MapEventType type,
                java.lang.Object newValue,
                java.lang.Object oldValue)
Construct EditManagerEvent.

Parameters:
source - the object that raised the event.
type - the type of event this object represents.
newValue - the new value, if this applies.
oldValue - the old value, if this applies.
Method Detail

getType

public MapEvent.MapEventType getType()
Gets the type of the event.

Returns:
the type of the event.
See Also:
MapEvent.MapEventType

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSource

public IMap getSource()
Description copied from class: UDIGEvent
Gets the source of the event.

Specified by:
getSource in class UDIGEvent
Returns:
the source of the event.