Package com.luciad.layers.styles
Class LineStyle
java.lang.Object
com.luciad.layers.styles.LineStyle
- All Implemented Interfaces:
AutoCloseable
This class contains styling properties to determine how a line is painted.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder class for creating line styles. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()getBloom()Returns the bloom to use, ornullif no bloom is used.android.graphics.ColorgetColor()Returns the line color.doublegetWidth()Returns the line width.booleanReturns whether theline widthis interpreted as meters instead of pixels.static LineStyle.BuilderReturns a new builder for creating aLineStyle.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
newBuilder
Returns a new builder for creating aLineStyle.- Returns:
- a new builder for creating a
LineStyle.
-
getWidth
public double getWidth()Returns the line width.If
isInMetersis true, the line width is interpreted as meters. Otherwise, the line width is interpreted as device independent pixels- Returns:
- the line width.
-
getColor
@NotNull public android.graphics.Color getColor()Returns the line color.- Returns:
- the line color.
-
isInMeters
public boolean isInMeters()Returns whether theline widthis interpreted as meters instead of pixels.- Returns:
- whether the
line widthis interpreted as meters instead of pixels. - Since:
- 2025.0
-
getBloom
Returns the bloom to use, ornullif no bloom is used.- Returns:
- the bloom to use, or
nullif no bloom is used. - Since:
- 2026.1
-
asBuilder
-