Class LineStyle

java.lang.Object
com.luciad.layers.styles.LineStyle
All Implemented Interfaces:
AutoCloseable

public final class LineStyle extends Object implements AutoCloseable
This class contains styling properties to determine how a line is painted.
  • Method Details

    • finalize

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

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

      @NotNull public static LineStyle.Builder newBuilder()
      Returns a new builder for creating a LineStyle.
      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 the line 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

      @NotNull public LineStyle.Builder asBuilder()
      Returns a LineStyle builder that has all properties of this LineStyle.
      Returns:
      a LineStyle builder that has all properties of this LineStyle.