Package com.luciad.layers.styles
Class ParameterizedLineStyle.Builder
java.lang.Object
com.luciad.layers.styles.ParameterizedLineStyle.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ParameterizedLineStyle
A builder class for creating line styles.
- Since:
- 2026.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newly created line style, based on the properties set on this builder.voidclose()colorExpression(StyleExpression<android.graphics.Color> colorExpression) Sets the line color expression.protected voidfinalize()visibilityExpression(StyleExpression<Boolean> visibilityExpression) Sets the line visibility expression.widthExpression(StyleExpression<Double> widthExpression) Sets the width expression.
-
Constructor Details
-
Builder
Copy constructor.- Parameters:
other- the builder to copy.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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.
-