@Deprecated public final class TLspGRIBLayerBuilder extends ALspLayerBuilder
ILspLayer layer = TLspGRIBLayerBuilder.newBuilder()
.model( myGribModel )
.build();
Constructor and Description |
---|
TLspGRIBLayerBuilder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ILspStyledLayer |
build()
Deprecated.
Creates a new layer instance.
|
TLspGRIBLayerBuilder |
colorModel(ColorModel aColorModel)
Deprecated.
Sets the color model to use for the raster visualization.
|
static ILcdParameterizedIcon |
createParameterizedIcon(ALcdGRIBIcon aGRIBIcon)
Deprecated.
Creates a new
ILcdParameterizedIcon based one the given GRIB icon. |
TLspGRIBLayerBuilder |
icon(ILcdIcon aIcon)
Deprecated.
Sets the icon of the layer.
|
TLspGRIBLayerBuilder |
iconStyle(TLspParameterizedRasterIconStyle aIconStyle)
Deprecated.
Sets the style to use for icon visualization.
|
TLspGRIBLayerBuilder |
label(String aLabel)
Deprecated.
Sets the label of the layer.
|
TLspGRIBLayerBuilder |
layerStyle(TLspLayerStyle aLayerStyle)
Deprecated.
Set a layer style to be used during the rendering of the layer.
|
TLspGRIBLayerBuilder |
layerType(ILspLayer.LayerType aLayerType)
Deprecated.
Sets the layer type of the layer.
|
TLspGRIBLayerBuilder |
model(ILcdModel aModel)
Deprecated.
Sets the model of the layer.
|
static TLspGRIBLayerBuilder |
newBuilder()
Deprecated.
Returns a new layer builder with the default settings
|
TLspGRIBLayerBuilder |
rasterStyle(TLspRasterStyle aRasterStyle)
Deprecated.
Sets the style to use for raster visualization.
|
getIcon, getLabel, getLayerStyle, getLayerType, getModel
public static TLspGRIBLayerBuilder newBuilder()
public ILspStyledLayer build()
Creates a new layer instance.
The created layer exposes aILspCustomizableStyler
with the configured raster style
or parameterized icon style
(if any)build
in class ALspLayerBuilder
public TLspGRIBLayerBuilder colorModel(ColorModel aColorModel)
aColorModel
- the color model to use for the raster visualization, or null for a default
color model, based on the type of GRIB datathis
TLspRasterStyle
,
ILcdRaster
,
rasterStyle(com.luciad.view.lightspeed.style.TLspRasterStyle)
public TLspGRIBLayerBuilder rasterStyle(TLspRasterStyle aRasterStyle)
aRasterStyle
- the style to use, or null for a default raster style that makes use of the
set colorModel(java.awt.image.ColorModel)
this
public TLspGRIBLayerBuilder iconStyle(TLspParameterizedRasterIconStyle aIconStyle)
aIconStyle
- the icon style to use, or null
for a default GRIB icon.this
public TLspGRIBLayerBuilder model(ILcdModel aModel)
model
in class ALspLayerBuilder
aModel
- a modelthis
IllegalArgumentException
- if the given model is not a GRIB modelILcdLayer.getModel()
public TLspGRIBLayerBuilder label(String aLabel)
ALspLayerBuilder
null
.label
in class ALspLayerBuilder
aLabel
- the labelILcdLayer.getLabel()
public TLspGRIBLayerBuilder layerType(ILspLayer.LayerType aLayerType)
ALspLayerBuilder
ILspLayer.LayerType.EDITABLE
.layerType
in class ALspLayerBuilder
aLayerType
- the layer typeILspLayer.getLayerType()
public TLspGRIBLayerBuilder icon(ILcdIcon aIcon)
ALspLayerBuilder
null
.icon
in class ALspLayerBuilder
aIcon
- the iconILcdLayer.getIcon()
public TLspGRIBLayerBuilder layerStyle(TLspLayerStyle aLayerStyle)
ALspLayerBuilder
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 calling
ILspLayer.setLayerStyle(TLspLayerStyle)
.layerStyle
in class ALspLayerBuilder
aLayerStyle
- the layer style. Must not be null
. If you want to set the default layer style, set TLspLayerStyle.newBuilder().build()
ILspLayer.getLayerStyle()
,
ILspLayer.setLayerStyle(TLspLayerStyle)
public static ILcdParameterizedIcon createParameterizedIcon(ALcdGRIBIcon aGRIBIcon)
ILcdParameterizedIcon
based one the given GRIB icon.aGRIBIcon
- a GRIB icon.ILcdParameterizedIcon
.