Package com.esri.arcgisruntime.ogc.kml
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 aKmlNode
is displayed and whether or not the<outline>
of a KmlNode is displayed. If the outline id displayed, the outline will use the currentKmlLineStyle
. 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 currentKmlLineStyle
.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 com.esri.arcgisruntime.ogc.kml.KmlColorStyle
getColor, getColorMode, setColor, setColorMode
-
-
-
-
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 currentKmlLineStyle
. Default is true.- Returns:
- true if the polygon is outlined, false otherwise
-
-