net.refractions.udig.project
Class MapCompositionEvent
java.lang.Object
net.refractions.udig.project.UDIGEvent
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.