Class 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 Summary

      Constructors 
      Constructor Description
      KmlLineStyle​(int color, double width)
      Constructs a KmlLineStyle with the specified color and width.
    • Constructor Detail

      • KmlLineStyle

        public KmlLineStyle​(int color,
                            double width)
        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:
        java.lang.IllegalArgumentException - if width is negative
        Since:
        100.6.0
    • Method Detail

      • 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:
        java.lang.IllegalArgumentException - if width is negative
        Since:
        100.6.0