public final class TLspPaintGroupsChangedEvent extends EventObject
TLcdModelChangedEvent
, but
adds some additional context w.r.t. paint groups.Modifier and Type | Class and Description |
---|---|
static class |
TLspPaintGroupsChangedEvent.Change
Represents a change to the paint groups.
|
static class |
TLspPaintGroupsChangedEvent.Type
Indicates the type of change in a
TLspPaintGroupsChangedEvent . |
source
Constructor and Description |
---|
TLspPaintGroupsChangedEvent(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.
|
Modifier and Type | Method and Description |
---|---|
ILspLayer |
getLayer()
Returns the layer for which the paint groups or objects have changed.
|
Collection<TLspPaintGroupsChangedEvent.Change> |
getPaintGroupChanges()
Returns the paint group changes.
|
ILspPaintGroupSet |
getPaintGroupSet()
The set of all paint groups after the change.
|
TLspPaintGroupsChangedEvent.Type |
getType()
Returns the type of change.
|
ILspView |
getView()
Returns the view for which the paint groups or objects have changed.
|
String |
toString() |
getSource
public TLspPaintGroupsChangedEvent(ILspLayer aLayer, ILspView aView, TLspPaintGroupsChangedEvent.Type aType, ILspPaintGroupSet aPaintGroupSet)
aLayer
- the layeraView
- the viewaType
- the type of changeaPaintGroupSet
- the paint group setpublic TLspPaintGroupsChangedEvent(ILspLayer aLayer, ILspView aView, ILspPaintGroupSet aPaintGroupSet, Collection<TLspPaintGroupsChangedEvent.Change> aPaintGroupChanges)
aLayer
- the layeraView
- the viewaPaintGroupSet
- the paint group setaPaintGroupChanges
- the changespublic ILspLayer getLayer()
public ILspView getView()
public ILspPaintGroupSet getPaintGroupSet()
public Collection<TLspPaintGroupsChangedEvent.Change> getPaintGroupChanges()
type
is
TLspPaintGroupsChangedEvent.Type.ALL_OBJECTS_CHANGED or TLspPaintGroupsChangedEvent.Type.ALL_OBJECTS_REMOVED.public TLspPaintGroupsChangedEvent.Type getType()
public String toString()
toString
in class EventObject