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

      Constructors 
      Constructor Description
      KmlPolygonStyle​(int color)
      Constructs a KmlPolygonStyle with the specified fill color.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isFilled()
      Indicates whether or not to display the polygon with a filled symbol.
      boolean isOutlined()
      Indicates whether or not to display the polygon with an outline symbol using the current KmlLineStyle.
      void setFilled​(boolean filled)
      Sets whether or not to fill the polygon.
      void setOutlined​(boolean outlined)
      Sets whether or not to outline the polygon.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KmlPolygonStyle

        public KmlPolygonStyle​(int 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 Detail

      • 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