Package com.luciad.layers.rasters
Class RasterLayer
java.lang.Object
com.luciad.layers.Layer
com.luciad.layers.rasters.RasterLayer
- All Implemented Interfaces:
AutoCloseable
A layer for raster models.
Use RasterLayer#newBuilder
to create a raster layer instance.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property name for theLayerEvent
that is fired as a result of changing the layer's style.Fields inherited from class com.luciad.layers.Layer
PropertyTitle, PropertyVisible
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
Returns thetype
of this raster layer.getModel()
Returns the layer's model, which provides the raster to be presented.Returns the raster style used for painting this layer.static RasterLayer.Builder
Returns the new builder for creating aRasterLayer
.void
setRasterStyle
(RasterStyle rasterStyle) Sets the raster style used for painting this layer.Methods inherited from class com.luciad.layers.Layer
addObserver, getId, getTitle, isVisible, removeObserver, setTitle, setVisible
-
Field Details
-
PropertyRasterStyle
Property name for theLayerEvent
that is fired as a result of changing the layer's style.- Since:
- 2023.1
- See Also:
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classLayer
-
newBuilder
Returns the new builder for creating aRasterLayer
.- Returns:
- the new builder for creating a
RasterLayer
.
-
getModel
Returns the layer's model, which provides the raster to be presented.- Returns:
- the layer's model, which provides the raster to be presented.
-
getRasterStyle
Returns the raster style used for painting this layer.- Returns:
- the style of this layer.
- Since:
- 2023.1
-
setRasterStyle
Sets the raster style used for painting this layer.If the new raster style is different from the old one, a
LayerEvent
is delivered to the observers with the property name PropertyRasterStyle.- Parameters:
rasterStyle
- the new raster style.- Since:
- 2023.1
-
getLayerType
Returns thetype
of this raster layer.- Returns:
- this layer type.
- Since:
- 2024.0
-