Class LineOfSightStyle.Builder

java.lang.Object
com.luciad.layers.styles.LineOfSightStyle.Builder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
LineOfSightStyle

public static final class LineOfSightStyle.Builder extends Object implements AutoCloseable
Builder for line-of-sight (LOS) styles.

The default line-of-sight style has a red visible color, a green invisible color and an orange unknown color.

Since:
2025.0
  • Constructor Details

  • Method Details

    • finalize

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

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

      @NotNull public LineOfSightStyle build()
      Returns a newly created line-of-sight style, based on the properties set on this builder.
      Returns:
      a newly created line-of-sight style, based on the properties set on this builder.
    • visibleColor

      @NotNull public LineOfSightStyle.Builder visibleColor(@NotNull android.graphics.Color color)
      Sets the color that is used to indicate areas that are visible to the observer in the center.

      This parameter is optional. If not set, default is red.

      Parameters:
      color - the visible color
      Returns:
      this builder.
    • invisibleColor

      @NotNull public LineOfSightStyle.Builder invisibleColor(@NotNull android.graphics.Color color)
      Sets the color that is used to indicate areas that are invisible to the observer in the center.

      This parameter is optional. If not set, default is green.

      Parameters:
      color - the invisible color
      Returns:
      this builder.