Class KmlStyle

java.lang.Object
com.esri.arcgisruntime.ogc.kml.KmlStyle

public final class KmlStyle extends 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 Details

    • KmlStyle

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

    • 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

      public KmlIconStyle getIconStyle()
      Gets the KML icon style.
      Returns:
      a KmlIconStyle
      Since:
      100.6.0
      See Also:
    • 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

      public KmlLineStyle getLineStyle()
      Gets a KML line style.
      Returns:
      a KmlLineStyle
      Since:
      100.6.0
      See Also:
    • 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

      public KmlLabelStyle getLabelStyle()
      Gets the KML label style.
      Returns:
      a KmlLabelStyle
      Since:
      100.6.0
      See Also:
    • 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

      public KmlPolygonStyle getPolygonStyle()
      Gets the KML polygon style.
      Returns:
      a KmlPolygonStyle
      Since:
      100.6.0
      See Also: