Class ALspStyler
java.lang.Object
com.luciad.view.lightspeed.style.styler.ALspStyler
- All Implemented Interfaces:
ILspStyler
- Direct Known Subclasses:
ALspCustomizableStyler,ALspLabelStyler,ALspToggleStyler,TLspCGMStyler,TLspDGNStyler,TLspDWGStyler,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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStyleChangeListener(ILspStyleChangeListener aListener) Registers a style change listener with this styler.voidCreates a style change event with empty model, affected objects and styles and notifies all listeners.voidfireStyleChangeEvent(ILcdModel aAffectedModel, Collection<Object> aAffectedObjects, Collection<ALspStyle> aAffectedStyles) Creates a style change event and notifies all listeners.voidremoveStyleChangeListener(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, waitMethods inherited from interface com.luciad.view.lightspeed.style.styler.ILspStyler
style
-
Constructor Details
-
ALspStyler
public ALspStyler()
-
-
Method Details
-
addStyleChangeListener
Description copied from interface:ILspStylerRegisters a style change listener with this styler. Appropriate events will be passed to this listener whenever a style changes.- Specified by:
addStyleChangeListenerin interfaceILspStyler- Parameters:
aListener- the style change listener to add
-
removeStyleChangeListener
Description copied from interface:ILspStylerUnregisters a style change listener from this styler.- Specified by:
removeStyleChangeListenerin 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:
-