Class RasterStyle

java.lang.Object
com.luciad.layers.styles.RasterStyle
All Implemented Interfaces:
AutoCloseable

public final class RasterStyle extends Object implements AutoCloseable
Style for rasters.

Construction of a raster style is done through the Builder design pattern mechanism.

Since:
2023.1
  • Method Details Link icon

    • finalize Link icon

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

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

      @NotNull public static RasterStyle.Builder newBuilder()
      Creates a new builder with the default values.
      Returns:
      the new builder.
    • asBuilder Link icon

      @NotNull public RasterStyle.Builder asBuilder()
      Creates a new builder initialized with all the properties of this style.
      Returns:
      the new builder.
    • getBrightness Link icon

      public double getBrightness()
      Returns the brightness.

      The brightness is a value in [0, 2]. A value of 1 (the default) leaves the brightness unchanged. Values larger than 1 makes the colors brighter, while a value smaller than 1 makes the colors less bright.

      Returns:
      the brightness.
    • getContrast Link icon

      public double getContrast()
      Returns the contrast.

      The contrast is a value in [0, 2]. A value of 1 (the default) leaves the contrast unchanged. A value larger than 1 enhances the contrast of dark colors by making them brighter, while a value smaller than 1 enhances the contrast of bright colors by making them darker.

      Returns:
      the contrast.
    • getModulationColor Link icon

      @NotNull public android.graphics.Color getModulationColor()
      Returns the color that is modulated with the raster.

      For example using a raster with gray-scale colors and a red modulation color will result in a resulting painted raster with red hues.

      Returns:
      the modulation color.
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals Link icon

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object