Package com.luciad.format.vpf.lightspeed
Class TLspVPFLayerBuilder
java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
com.luciad.format.vpf.lightspeed.TLspVPFLayerBuilder
Layer builder for VPF models which are decoded by the TLcdVPFModelDecoder
.
This builder only accepts models with a TLcdVPFModelDescriptor
.
The builder supports model trees which combine multiple VPF feature classes as well as individual models.
This builder creates layers which use a TLspVPFGeoSymStyler
and TLspVPFGeoSymLabelStyler
.
The user can choose between full and simplified styling using simplifiedStyling(boolean)
.
- Since:
- 2016.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a new layer for the given model and configures GeoSym styling.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.layerType
(ILspLayer.LayerType aLayerType) Sets the layer type of the layer.Sets the model of the layer.static TLspVPFLayerBuilder
simplifiedStyling
(boolean aSimplifiedStyling) Specifies whether the builder should configure full or simplified GeoSym styling for the layers it creates.Methods inherited from class com.luciad.view.lightspeed.layer.ALspLayerBuilder
getIcon, getLabel, getLayerStyle, getLayerType, getModel
-
Method Details
-
newBuilder
- Returns:
- a new VPF layer builder with the default settings
-
simplifiedStyling
Specifies whether the builder should configure full or simplified GeoSym styling for the layers it creates. The default isfalse
.- Parameters:
aSimplifiedStyling
- true to use simplified styling, false to use full styling- Returns:
- this builder
-
build
Creates a new layer for the given model and configures GeoSym styling. If the model is anILcdModelTreeNode
, the builder will create aTLspLayerTreeNode
with the same structure. Otherwise, it will create an individual layer.- Specified by:
build
in classALspLayerBuilder
- Returns:
- a layer configured with GeoSym styling
-
model
Description copied from class:ALspLayerBuilder
Sets the model of the layer. The default value isnull
.- Overrides:
model
in classALspLayerBuilder
- Parameters:
aModel
- a model- Returns:
- this builder
- See Also:
-
label
Description copied from class:ALspLayerBuilder
Sets 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:
label
in classALspLayerBuilder
- Parameters:
aLabel
- the label- Returns:
- this builder
- See Also:
-
icon
Description copied from class:ALspLayerBuilder
Sets the icon of the layer. The default value isnull
.- Overrides:
icon
in classALspLayerBuilder
- Parameters:
aIcon
- the icon- Returns:
- this builder
- See Also:
-
layerType
Description copied from class:ALspLayerBuilder
Sets the layer type of the layer. The default value isILspLayer.LayerType.EDITABLE
.- Overrides:
layerType
in classALspLayerBuilder
- Parameters:
aLayerType
- the layer type- Returns:
- this builder
- See Also:
-
layerStyle
Description copied from class:ALspLayerBuilder
Set a layer style to be used during the rendering of the layer.TLspLayerStyle
is 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:
layerStyle
in 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:
-