Class ParameterizedLineStyle.Builder

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

public static final class ParameterizedLineStyle.Builder extends Object implements AutoCloseable
A builder class for creating line styles.
Since:
2026.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 ParameterizedLineStyle build()
      Returns a newly created line style, based on the properties set on this builder.
      Returns:
      a newly created line style.
    • colorExpression

      @NotNull public ParameterizedLineStyle.Builder colorExpression(@NotNull StyleExpression<android.graphics.Color> colorExpression)
      Sets the line color expression.

      By default, the color is white.

      Parameters:
      colorExpression - the expression used to determine the line color.
      Returns:
      this builder.
    • visibilityExpression

      @NotNull public ParameterizedLineStyle.Builder visibilityExpression(@NotNull StyleExpression<Boolean> visibilityExpression)
      Sets the line visibility expression.

      By default, the line is visible.

      Parameters:
      visibilityExpression - the expression used to determine visibility.
      Returns:
      this builder.
    • widthExpression

      @NotNull public ParameterizedLineStyle.Builder widthExpression(@NotNull StyleExpression<Double> widthExpression)
      Sets the width expression.

      By default, the line width is 1.

      Parameters:
      widthExpression - the expression used to determine the line width.
      Returns:
      this builder.