public class TLspStyleChangeEvent extends EventObject
styler
.
This event can list the domain objects whose style has changed, as well
as indicate which particular styles are no longer valid.
Note that all
properties of this event are optional, i.e., if none of the properties are
set, a painter should assume that all styles it had been using
up until this event are no longer valid.
Setting only some of the properties is also
possible, but it is recommended to be as specific as possible for efficiency reasons.source
Constructor and Description |
---|
TLspStyleChangeEvent(ILspStyler aSource,
ILcdModel aAffectedModel,
Collection<Object> aAffectedObjects,
Collection<ALspStyle> aAffectedStyles)
Constructs a style change event object.
|
Modifier and Type | Method and Description |
---|---|
ILcdModel |
getAffectedModel()
Returns the model the affected objects belong to.
|
Collection<Object> |
getAffectedObjects()
Returns a collection of objects whose style has changed.
|
Collection<ALspStyle> |
getAffectedStyles()
Returns a collection of styles which are no longer in use.
|
ILspStyler |
getStyler()
The styler for which the styles are changed.
|
getSource, toString
public TLspStyleChangeEvent(ILspStyler aSource, ILcdModel aAffectedModel, Collection<Object> aAffectedObjects, Collection<ALspStyle> aAffectedStyles)
aSource
- the source styler of the eventaAffectedModel
- the model that is affected. Can be null
.aAffectedObjects
- the objects in the model that are affected. Can be null
.aAffectedStyles
- the styles that are affected. Can be null
.public ILspStyler getStyler()
public ILcdModel getAffectedModel()
null
public Collection<Object> getAffectedObjects()
null
public Collection<ALspStyle> getAffectedStyles()
null