net.refractions.udig.project
Class MapCompositionEvent

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

public class MapCompositionEvent
extends UDIGEvent

Event encapsulating information about the changes of the composition of a map.

Since:
1.1.0
Author:
Jesse

Nested Class Summary
static class MapCompositionEvent.EventType
           
 
Field Summary
 
Fields inherited from class net.refractions.udig.project.UDIGEvent
newValue, oldValue, source
 
Constructor Summary
MapCompositionEvent(IMap source, MapCompositionEvent.EventType type, java.lang.Object newValue, java.lang.Object oldValue, ILayer layer)
          Construct EditManagerEvent.
 
Method Summary
 ILayer getLayer()
          Returns the layer modified if the event type was MapCompositionEvent.EventType.ADDED, MapCompositionEvent.EventType.REMOVED or MapCompositionEvent.EventType.REORDERED.
 IMap getSource()
          Gets the source of the event.
 MapCompositionEvent.EventType 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

MapCompositionEvent

public MapCompositionEvent(IMap source,
                           MapCompositionEvent.EventType type,
                           java.lang.Object newValue,
                           java.lang.Object oldValue,
                           ILayer layer)
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 MapCompositionEvent.EventType getType()
Gets the type of the event.

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

getLayer

public ILayer getLayer()
Returns the layer modified if the event type was MapCompositionEvent.EventType.ADDED, MapCompositionEvent.EventType.REMOVED or MapCompositionEvent.EventType.REORDERED.

Returns:
Returns the layer.

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.