Class KmlPolygonStyle

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

public final class KmlPolygonStyle extends KmlColorStyle
Specifies the drawing style for all polygons, including polygon extrusions (which look like buildings) and line extrusions (which look like solid fences).

Controls how the <fill> of a KmlNode is displayed and whether or not the <outline> of a KmlNode is displayed. If the outline id displayed, the outline will use the current KmlLineStyle. Corresponds to a <PolyStyle> in a KML document.

Since:
100.6.0
  • Constructor Details

    • KmlPolygonStyle

      public KmlPolygonStyle(Color color)
      Constructs a KmlPolygonStyle with the specified fill color.

      By default, the polygon style is filled with the color and outlined.

      Parameters:
      color - the color used to fill the polygon. Default is Color.WHITE.
      Throws:
      IllegalArgumentException - if color is null
      Since:
      200.0.0
    • KmlPolygonStyle

      @Deprecated(since="200.0.0", forRemoval=true) public KmlPolygonStyle(int color)
      Deprecated, for removal: This API element is subject to removal in a future version.
      as of 200.0.0, replaced by KmlPolygonStyle(Color)
      Constructs a KmlPolygonStyle with the specified fill color.

      By default, the polygon style is filled with the color and outlined.

      Parameters:
      color - the color used to fill the polygon in 0xAARRGGBB format. Default is 0xFFFFFFFF.
      Since:
      100.6.0
  • Method Details

    • setFilled

      public void setFilled(boolean filled)
      Sets whether or not to fill the polygon.
      Parameters:
      filled - true to fill the polygon, false otherwise
      Since:
      100.6.0
    • setOutlined

      public void setOutlined(boolean outlined)
      Sets whether or not to outline the polygon.
      Parameters:
      outlined - true to outline the polygon, false otherwise
      Since:
      100.6.0
    • isFilled

      public boolean isFilled()
      Indicates whether or not to display the polygon with a filled symbol. Default is true.
      Returns:
      true if the polygon is filled, false otherwise
      Since:
      100.6.0
    • isOutlined

      public boolean isOutlined()
      Indicates whether or not to display the polygon with an outline symbol using the current KmlLineStyle. Default is true.
      Returns:
      true if the polygon is outlined, false otherwise