Class RasterLayer

java.lang.Object
com.luciad.layers.Layer
com.luciad.layers.rasters.RasterLayer
All Implemented Interfaces:
AutoCloseable

public final class RasterLayer extends Layer implements AutoCloseable
A layer for raster models.

Use RasterLayer#newBuilder to create a raster layer instance.

  • Field Details

    • PropertyRasterStyle

      public static final String PropertyRasterStyle
      Property name for the LayerEvent that is fired as a result of changing the layer's style.
      Since:
      2023.1
      See Also:
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Layer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class Layer
    • newBuilder

      @NotNull public static RasterLayer.Builder newBuilder()
      Returns the new builder for creating a RasterLayer.
      Returns:
      the new builder for creating a RasterLayer.
    • getModel

      @NotNull public IRasterModel 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

      @NotNull public RasterStyle getRasterStyle()
      Returns the raster style used for painting this layer.
      Returns:
      the style of this layer.
      Since:
      2023.1
    • setRasterStyle

      public void setRasterStyle(@NotNull RasterStyle rasterStyle)
      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

      @NotNull public RasterLayerType getLayerType()
      Returns the type of this raster layer.
      Returns:
      this layer type.
      Since:
      2024.0