Class TLspStyleChangeEvent
java.lang.Object
java.util.EventObject
com.luciad.view.lightspeed.style.styler.TLspStyleChangeEvent
- All Implemented Interfaces:
Serializable
Describes a style change that occurred in a
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.- Since:
- 2012.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLspStyleChangeEvent
(ILspStyler aSource, ILcdModel aAffectedModel, Collection<Object> aAffectedObjects, Collection<ALspStyle> aAffectedStyles) Constructs a style change event object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the model the affected objects belong to.Returns a collection of objects whose style has changed.Returns a collection of styles which are no longer in use.The styler for which the styles are changed.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
TLspStyleChangeEvent
public TLspStyleChangeEvent(ILspStyler aSource, ILcdModel aAffectedModel, Collection<Object> aAffectedObjects, Collection<ALspStyle> aAffectedStyles) Constructs a style change event object.- Parameters:
aSource
- the source styler of the eventaAffectedModel
- the model that is affected. Can benull
.aAffectedObjects
- the objects in the model that are affected. Can benull
.aAffectedStyles
- the styles that are affected. Can benull
.
-
-
Method Details
-
getStyler
The styler for which the styles are changed.- Returns:
- the styler for which the styles are changed
-
getAffectedModel
Returns the model the affected objects belong to. If this method returns null, the client should assume that all styles have changed.- Returns:
- the model the affected objects belong to, can be
null
-
getAffectedObjects
Returns a collection of objects whose style has changed. If this method returns null, the client should assume that all styles have changed.- Returns:
- the collection of affected objects, can be
null
-
getAffectedStyles
Returns a collection of styles which are no longer in use. If this method returns null, the client should assume that all styles have changed.- Returns:
- the affected styles, can be
null
-