Class TLspPaintGroupsChangedEvent
java.lang.Object
java.util.EventObject
com.luciad.view.lightspeed.layer.paintgroup.TLspPaintGroupsChangedEvent
- All Implemented Interfaces:
Serializable
Describes a change in the paint groups and/or objects of a layer.
This event provides the information in a
TLcdModelChangedEvent
, but
adds some additional context w.r.t. paint groups.- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a change to the paint groups.static enum
Indicates the type of change in aTLspPaintGroupsChangedEvent
. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLspPaintGroupsChangedEvent
(ILspLayer aLayer, ILspView aView, ILspPaintGroupSet aPaintGroupSet, Collection<TLspPaintGroupsChangedEvent.Change> aPaintGroupChanges) Creates an event where specific objects have changed.TLspPaintGroupsChangedEvent
(ILspLayer aLayer, ILspView aView, TLspPaintGroupsChangedEvent.Type aType, ILspPaintGroupSet aPaintGroupSet) Creates an event where all paint groups are removed or may have changed. -
Method Summary
Modifier and TypeMethodDescriptiongetLayer()
Returns the layer for which the paint groups or objects have changed.Returns the paint group changes.The set of all paint groups after the change.getType()
Returns the type of change.getView()
Returns the view for which the paint groups or objects have changed.toString()
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
TLspPaintGroupsChangedEvent
public TLspPaintGroupsChangedEvent(ILspLayer aLayer, ILspView aView, TLspPaintGroupsChangedEvent.Type aType, ILspPaintGroupSet aPaintGroupSet) Creates an event where all paint groups are removed or may have changed.- Parameters:
aLayer
- the layeraView
- the viewaType
- the type of changeaPaintGroupSet
- the paint group set
-
TLspPaintGroupsChangedEvent
public TLspPaintGroupsChangedEvent(ILspLayer aLayer, ILspView aView, ILspPaintGroupSet aPaintGroupSet, Collection<TLspPaintGroupsChangedEvent.Change> aPaintGroupChanges) Creates an event where specific objects have changed.- Parameters:
aLayer
- the layeraView
- the viewaPaintGroupSet
- the paint group setaPaintGroupChanges
- the changes
-
-
Method Details
-
getLayer
Returns the layer for which the paint groups or objects have changed.- Returns:
- the layer
-
getView
Returns the view for which the paint groups or objects have changed.- Returns:
- the view
-
getPaintGroupSet
The set of all paint groups after the change.- Returns:
- the paint group set
-
getPaintGroupChanges
Returns the paint group changes. Each object can be part of at most one change. All objects and paint groups may have changed if the changetype
is TLspPaintGroupsChangedEvent.Type.ALL_OBJECTS_CHANGED or TLspPaintGroupsChangedEvent.Type.ALL_OBJECTS_REMOVED.- Returns:
- the paint group changes
-
getType
Returns the type of change. All objects and paint groups may have changed if this methods returns TLspPaintGroupsChangedEvent.Type.ALL_OBJECTS_CHANGED or TLspPaintGroupsChangedEvent.Type.ALL_OBJECTS_REMOVED..- Returns:
- the type of change
-
toString
- Overrides:
toString
in classEventObject
-