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 class
A builder class for creating line styles. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
android.graphics.Color
getColor()
Returns the line color.double
getWidth()
Returns the line width.boolean
Returns whether theline width
is interpreted as meters instead of pixels.static LineStyle.Builder
Returns a new builder for creating aLineStyle
.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in 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
isInMeters
is 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 width
is interpreted as meters instead of pixels.- Returns:
- whether the
line width
is interpreted as meters instead of pixels. - Since:
- 2024.1.09
-
asBuilder
-