Class ALspStyler
java.lang.Object
com.luciad.view.lightspeed.style.styler.ALspStyler
- All Implemented Interfaces:
ILspStyler
- Direct Known Subclasses:
ALspCustomizableStyler
,ALspLabelStyler
,ALspToggleStyler
,TLspCGMStyler
,TLspEditableStyler
,TLspEditHandleStyler
,TLspMIFStyler
,TLspNVGStyler
,TLspPOLStyler
,TLspScaleBasedStyler
,TLspSnapperStyler
,TLspStyler
,TLspVPFGeoSymLabelStyler
,TLspVPFGeoSymStyler
Abstract base class for ILspStyler implementations.
This class provides convenience methods for handling style changes. ILspStyler implementations that
do not throw style changes can also consider to implement ILspStyler directly.
- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStyleChangeListener
(ILspStyleChangeListener aListener) Registers a style change listener with this styler.void
Creates a style change event with empty model, affected objects and styles and notifies all listeners.void
fireStyleChangeEvent
(ILcdModel aAffectedModel, Collection<Object> aAffectedObjects, Collection<ALspStyle> aAffectedStyles) Creates a style change event and notifies all listeners.void
removeStyleChangeListener
(ILspStyleChangeListener aListener) Unregisters a style change listener from this styler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.lightspeed.style.styler.ILspStyler
style
-
Constructor Details
-
ALspStyler
public ALspStyler()
-
-
Method Details
-
addStyleChangeListener
Description copied from interface:ILspStyler
Registers a style change listener with this styler. Appropriate events will be passed to this listener whenever a style changes.- Specified by:
addStyleChangeListener
in interfaceILspStyler
- Parameters:
aListener
- the style change listener to add
-
removeStyleChangeListener
Description copied from interface:ILspStyler
Unregisters a style change listener from this styler.- Specified by:
removeStyleChangeListener
in interfaceILspStyler
- Parameters:
aListener
- the style change listener to remove
-
fireStyleChangeEvent
public void fireStyleChangeEvent(ILcdModel aAffectedModel, Collection<Object> aAffectedObjects, Collection<ALspStyle> aAffectedStyles) Creates a style change event and notifies all listeners. This method fires a style change event for the specified model, objects and/or styles.
- Parameters:
aAffectedModel
- the model the affected objects belong to. Can benull
.aAffectedObjects
- the list of objects that were affected. Can benull
.aAffectedStyles
- the list of styles that were affected. Can benull
.- See Also:
-
fireStyleChangeEvent
public void fireStyleChangeEvent()Creates a style change event with empty model, affected objects and styles and notifies all listeners. Use the more specificfireStyleChangeEvent(com.luciad.model.ILcdModel, java.util.Collection, java.util.Collection)
method if more information is known.- See Also:
-