Class KmlStyle


  • public final class KmlStyle
    extends java.lang.Object
    Specifies the drawing style for a KmlNode.

    Controls the drawing style for the icon, line, polygon, and/or label or a KMLNode. A KMLStyle is made up of several substyles, including KmlIconStyle, KmlLineStyle, KmlPolygonStyle, and KmlLabelStyle.

    Not all node types support styling. For example, a KmlTour node cannot be stylized.

    Since:
    100.6.0
    • Constructor Detail

      • KmlStyle

        public KmlStyle()
        Creates a KML style. Substyles can be modified.
        Since:
        100.6.0
    • Method Detail

      • setIconStyle

        public void setIconStyle​(KmlIconStyle kmlIconStyle)
        Sets a KML icon style. Specifies how icons for point Placemarks are drawn.
        Parameters:
        kmlIconStyle - a KmlIconStyle
        Since:
        100.6.0
        See Also:
        getIconStyle()
      • setLineStyle

        public void setLineStyle​(KmlLineStyle kmlLineStyle)
        Sets a KML line style. Specifies the drawing style for all lines.
        Parameters:
        kmlLineStyle - a KmlLineStyle
        Since:
        100.6.0
        See Also:
        getLineStyle()
      • setLabelStyle

        public void setLabelStyle​(KmlLabelStyle kmlLabelStyle)
        Sets a KML label style. Specifies how Placemark labels are drawn.
        Parameters:
        kmlLabelStyle - a KmlLabelStyle
        Since:
        100.6.0
        See Also:
        getLabelStyle()
      • setPolygonStyle

        public void setPolygonStyle​(KmlPolygonStyle kmlPolygonStyle)
        Sets the KML polygon style. Specifies the drawing style for polygons.
        Parameters:
        kmlPolygonStyle - a KmlPolygonStyle
        Since:
        100.6.0
        See Also:
        getPolygonStyle()