Class ALspLabelStyler
- All Implemented Interfaces:
ILspStyler
- Direct Known Subclasses:
ALspSwingLabelStyler,TLspAISStyler,TLspAIXMStyler,TLspLabelStyler,TLspLonLatGridStyler,TLspRulerLabelStyler,TLspSLDStyler
Abstract base class for label styler implementations.
This class provides convenience methods for handling style changes.
This class also implements the regular ILspStyler by adapting or casting the
ALspStyleCollector to an ALspLabelStyleCollector.
Note that it is not necessary to use this class to implement a styler for labels. It is possible to use a
regular ILspStyler implementation that casts the ALspStyleCollector instance that is passed to
the ILspStyler#style method to ALspLabelStyleCollector.
- Since:
- 2012.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidstyle(Collection<?> aObjects, ALspLabelStyleCollector aStyleCollector, TLspContext aContext) Convenience method that takes anALspLabelStyleCollectoras argument instead of anALspStyleCollector.voidstyle(Collection<?> aObjects, ALspStyleCollector aStyleCollector, TLspContext aContext) Implementation ofILspStyler.stylethat either casts theALspStyleCollectortoALspLabelStyleCollectorif possible, or adapts it otherwise.Methods inherited from class com.luciad.view.lightspeed.style.styler.ALspStyler
addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, removeStyleChangeListener
-
Constructor Details
-
ALspLabelStyler
public ALspLabelStyler()
-
-
Method Details
-
style
Implementation of
ILspStyler.stylethat either casts theALspStyleCollectortoALspLabelStyleCollectorif possible, or adapts it otherwise. In the latter case, the labeling-specific calls (label,anchorLabel,algorithm, ...) are ignored. TheALspLabelStyleCollectoris then passed to thestyle(Collection,ALspLabelStyleCollector,TLspContext)method.- Parameters:
aObjects- The objects to be styled.aStyleCollector- A style collector to which all styling information should be passed, this collector is only valid within this method call, and can no longer be used afterwards.aContext- Provides context information that may affect styling, such as view specific properties.
-
style
public abstract void style(Collection<?> aObjects, ALspLabelStyleCollector aStyleCollector, TLspContext aContext) Convenience method that takes an
ALspLabelStyleCollectoras argument instead of anALspStyleCollector. This method is called fromstyle(Collection, ALspStyleCollector, TLspContext).- Parameters:
aObjects- The set of domain objects to provide information foraStyleCollector- The label style collector to submit the information to.aContext- The context- See Also:
-