Class EyeDomeLightingModel.Builder

java.lang.Object
com.luciad.maps.effects.EyeDomeLightingModel.Builder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
EyeDomeLightingModel

public static final class EyeDomeLightingModel.Builder extends Object implements AutoCloseable
Since:
2026.1
  • Constructor Details

  • Method Details

    • finalize

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

      public void close()
      Specified by:
      close in interface AutoCloseable
    • window

      @NotNull public EyeDomeLightingModel.Builder window(long window)
      Sets the number of surrounding pixels taken into account by the EDL model.

      The default is 2.

      Parameters:
      window - number of surrounding pixels taken into account by the EDL model.
      Returns:
      this builder.
    • strength

      @NotNull public EyeDomeLightingModel.Builder strength(double strength) throws IllegalArgumentException
      Sets the shading multiplication factor.

      A value between 0 and 1 softens the shade, a value higher than 1 hardens the shade. The default is 1.

      Parameters:
      strength - shading multiplication factor. Must be non-negative.
      Returns:
      this builder.
      Throws:
      IllegalArgumentException - when the strength is negative.
    • color

      @NotNull public EyeDomeLightingModel.Builder color(@NotNull android.graphics.Color color)
      Sets the color of the shade.

      Note that the alpha component of the color is ignored so the color is fully opaque. The default is black.

      Parameters:
      color - color of the shade.
      Returns:
      this builder.
    • build

      @NotNull public EyeDomeLightingModel build()
      Builds the eye-dome lighting model.
      Returns:
      the built eye-dome lighting model.