Package com.luciad.view.lightspeed.layer
Class ALspLayerBuilder
java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
- Direct Known Subclasses:
TLsp3DTileLayerBuilder
,TLspAIXMLayerBuilder
,TLspAPP6ALayerBuilder
,TLspARINCLayerBuilder
,TLspBUFRLayerBuilder
,TLspCGRSGridLayerBuilder
,TLspDAFIFLayerBuilder
,TLspDensityLayerBuilder
,TLspFusionVectorLayerBuilder
,TLspGARSGridLayerBuilder
,TLspGeorefGridLayerBuilder
,TLspGRIBLayerBuilder
,TLspHypsometricShadingLayerBuilder
,TLspImageProjectionLayerBuilder
,TLspKML22LayerBuilder
,TLspLIDARLayerBuilder
,TLspLonLatGridLayerBuilder
,TLspMBTilesVectorLayerBuilder
,TLspMGRSGridLayerBuilder
,TLspMilitarySymbologyLayerBuilder
,TLspMS2525bLayerBuilder
,TLspNetCDFLayerBuilder
,TLspNVGLayerBuilder
,TLspPlotLayerBuilder
,TLspRadarVideoLayerBuilder
,TLspRasterLayerBuilder
,TLspS52LayerBuilder
,TLspShapeLayerBuilder
,TLspVPFLayerBuilder
,TLspWMSLayerBuilder
,TLspXYGridLayerBuilder
Base class for various layer builders. Layer builders are provided in
LuciadLightspeed as the recommended mechanism for instantiating various
ILspLayer
implementations.- Since:
- 2012.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a layer builder, with the layer type set toILspLayer.LayerType.EDITABLE
. -
Method Summary
Modifier and TypeMethodDescriptionabstract ILspLayer
build()
Creates a new layer instance.protected final ILcdIcon
getIcon()
Returns the icon that is currently set.protected final String
getLabel()
Returns the label that is currently set.protected final TLspLayerStyle
Returns the layer style that is currently set.protected final ILspLayer.LayerType
Returns the layer type that is currently set.protected final ILcdModel
getModel()
Returns the model that is currently set.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.
-
Constructor Details
-
ALspLayerBuilder
protected ALspLayerBuilder()Creates a layer builder, with the layer type set toILspLayer.LayerType.EDITABLE
.
-
-
Method Details
-
build
Creates a new layer instance.
- Returns:
- the new layer instance
-
model
Sets the model of the layer. The default value isnull
.- Parameters:
aModel
- a model- Returns:
- this builder
- See Also:
-
label
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
.- Parameters:
aLabel
- the label- Returns:
- this builder
- See Also:
-
icon
Sets the icon of the layer. The default value isnull
.- Parameters:
aIcon
- the icon- Returns:
- this builder
- See Also:
-
layerType
Sets the layer type of the layer. The default value isILspLayer.LayerType.EDITABLE
.- Parameters:
aLayerType
- the layer type- Returns:
- this builder
- See Also:
-
layerStyle
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)
.- Parameters:
aLayerStyle
- the layer style. Must not benull
. If you want to set the default layer style, setTLspLayerStyle.newBuilder().build()
- Returns:
- this
- Since:
- 2017.0
- See Also:
-
getModel
Returns the model that is currently set.- Returns:
- the model that is currently set
-
getLabel
Returns the label that is currently set.- Returns:
- the label that is currently set
-
getIcon
Returns the icon that is currently set.- Returns:
- the icon that is currently set
-
getLayerType
Returns the layer type that is currently set.- Returns:
- the layer type that is currently set
-
getLayerStyle
Returns the layer style that is currently set.- Returns:
- the layer style that is currently set or
null
if there is no layer style set. - Since:
- 2017.0
-