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 Link icon

    • PropertyRasterStyle Link icon

      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 Link icon

    • finalize Link icon

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

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

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

      @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 Link icon

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

      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 Link icon

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