Interface ILspCustomizableStyler
- All Superinterfaces:
ILspStyler
- All Known Implementing Classes:
ALspCustomizableStyler
,TLspCustomizableStyler
,TLspLabelStyler
,TLspLonLatGridStyler
,TLspRulerLabelStyler
An extension of
ILspStyler
which uses a limited set of customizable styles to define the styling
of objects. These styles are available through the getStyles()
method.
A customizable styler offers a generic way to enable and disable styles and change them.
A typical use case for it is as follows:
- an end-user wishes to customize a layer's style. The application checks if the layer has a customizable styler. If so, it retrieves the styles and checks if there are relevant customizer panels. An example of this could be a customizer panel for a line style.
- the panel is initialized with the current line style settings
- once the user has changed the line style settings in the customizer panel, a new line style is built and the old one is replaced
- the styler automatically picks up the changes, and changes the visualization
- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the styler's customizable styles.Methods inherited from interface com.luciad.view.lightspeed.style.styler.ILspStyler
addStyleChangeListener, removeStyleChangeListener, style
-
Method Details
-
getStyles
Collection<TLspCustomizableStyle> getStyles()Returns the styler's customizable styles. When modifications are made to the styles, the styler will automatically inform its listeners about the change. The following changes can be made:
- Styles can be enabled or disabled. Only the enabled styles will be set in the style method.
- The
ALspStyle
in theTLspCustomizableStyle
may be replaced
identifier
of theTLspCustomizableStyle
to recognize and order the styles.- Returns:
- An immutable collection containing all styles which will be set in the
style
method
-