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
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
style
(Collection<?> aObjects, ALspLabelStyleCollector aStyleCollector, TLspContext aContext) Convenience method that takes anALspLabelStyleCollector
as argument instead of anALspStyleCollector
.void
style
(Collection<?> aObjects, ALspStyleCollector aStyleCollector, TLspContext aContext) Implementation ofILspStyler.style
that either casts theALspStyleCollector
toALspLabelStyleCollector
if 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.style
that either casts theALspStyleCollector
toALspLabelStyleCollector
if possible, or adapts it otherwise. In the latter case, the labeling-specific calls (label
,anchorLabel
,algorithm
, ...) are ignored. TheALspLabelStyleCollector
is 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
ALspLabelStyleCollector
as 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:
-