Class TLspS101LayerBuilder
java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
com.luciad.format.s101.view.lightspeed.TLspS101LayerBuilder
Layer builder for S-101 data.
Supports models for an individual cell, or for whole catalogues.
Example:
String source = ...; ILcdModelDecoder decoder = new TLcdS101ModelDecoder(); ILcdModel s101Model = decoder.decode( source ); ILspLayer layer = TLspS101LayerBuilder.newBuilder().model(s101Model).build();
- Since:
- 2026.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new layer instance.displaySettings(TLcdS101DisplaySettings aDisplaySettings) Specify theS-101 display settingsto use in this layer.Sets the icon of the layer.Sets the label of the layer.layerStyle(TLspLayerStyle aLayerStyle) Set a layer style to be used during the rendering of the layer.Sets the model for the layer.static TLspS101LayerBuilderCreates a new builder with default settings.Methods inherited from class com.luciad.view.lightspeed.layer.ALspLayerBuilder
getIcon, getLabel, getLayerStyle, getLayerType, getModel, layerType
-
Method Details
-
newBuilder
Creates a new builder with default settings.- Returns:
- A new builder with default settings.
-
model
Sets the model for the layer.Setting a model is mandatory.
The model must be an S-101 model: it must originate from the
TLcdS101ModelDecoder.- Overrides:
modelin classALspLayerBuilder- Parameters:
aModel- a model, notnull- Returns:
- this
- See Also:
-
label
Description copied from class:ALspLayerBuilderSets the label of the layer. This is a short textual representation for it, often used to represent the layer to end-users. The default value isnull.- Overrides:
labelin classALspLayerBuilder- Parameters:
aLabel- the label- Returns:
- this builder
- See Also:
-
icon
Description copied from class:ALspLayerBuilderSets the icon of the layer. The default value isnull.- Overrides:
iconin classALspLayerBuilder- Parameters:
aIcon- the icon- Returns:
- this builder
- See Also:
-
layerStyle
Description copied from class:ALspLayerBuilderSet a layer style to be used during the rendering of the layer.TLspLayerStyleis used to style the layer as a whole. Layer style can for example modify the transparency of a layer. Also, layer style can be modified after building the layer by callingILspLayer.setLayerStyle(TLspLayerStyle).- Overrides:
layerStylein classALspLayerBuilder- Parameters:
aLayerStyle- the layer style. Must not benull. If you want to set the default layer style, setTLspLayerStyle.newBuilder().build()- Returns:
- this
- See Also:
-
displaySettings
Specify theS-101 display settingsto use in this layer.This call is optional. If not specified, the default
TLcdS101DisplaySettingswill be used.- Parameters:
aDisplaySettings- S-101 display settings to use.- Returns:
- this
-
build
Creates a new layer instance.Before building the layer, you must have set a
model.- Specified by:
buildin classALspLayerBuilder- Returns:
- the new layer instance
- Throws:
IllegalStateException- if no model has been specified
-