Class KmlLineStyle

java.lang.Object
com.esri.arcgisruntime.ogc.kml.KmlColorStyle
com.esri.arcgisruntime.ogc.kml.KmlLineStyle

public final class KmlLineStyle extends KmlColorStyle
Specifies the drawing style (color, color mode, and line width) for all line geometry. Line geometry includes the outlines of outlined polygons and the extruded "tether" of Placemark icons (if extrusion is enabled).
Since:
100.6.0
  • Constructor Details

    • KmlLineStyle

      public KmlLineStyle(Color lineColor, double width)
      Constructs a KmlLineStyle with the specified color and width.
      Parameters:
      lineColor - color of the line style. Default is Color.WHITE.
      width - width of the line style, in pixels. Default is 1.0.
      Throws:
      IllegalArgumentException - if lineColor is null
      IllegalArgumentException - if width is negative
      Since:
      200.0.0
    • KmlLineStyle

      @Deprecated(since="200.0.0", forRemoval=true) public KmlLineStyle(int color, double width)
      Deprecated, for removal: This API element is subject to removal in a future version.
      as of 200.0.0, replaced by KmlLineStyle(Color, double)
      Constructs a KmlLineStyle with the specified color and width.
      Parameters:
      color - color of the line style in 0xAARRGGBB format. Default is 0xFFFFFFFF.
      width - width of the line style, in pixels. Default is 1.0.
      Throws:
      IllegalArgumentException - if width is negative
      Since:
      100.6.0
  • Method Details

    • getWidth

      public double getWidth()
      Gets the width of the KML line style, in pixels. Default is 1.0.
      Returns:
      the width of the KML line style
      Since:
      100.6.0
    • setWidth

      public void setWidth(double width)
      Sets the width of the KML line style.
      Parameters:
      width - the width of the KML line style
      Throws:
      IllegalArgumentException - if width is negative
      Since:
      100.6.0