java.lang.Object
com.esri.arcgisruntime.ogc.kml.KmlColorStyle
com.esri.arcgisruntime.ogc.kml.KmlPolygonStyle
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
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.ogc.kml.KmlColorStyle
color
-
Constructor Summary
ConstructorDescriptionKmlPolygonStyle
(int color) Deprecated, for removal: This API element is subject to removal in a future version.KmlPolygonStyle
(Color color) Constructs a KmlPolygonStyle with the specified fill color. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isFilled()
Indicates whether or not to display the polygon with a filled symbol.boolean
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
colorProperty, getColor, getColorMode, setColor, setColor, setColorMode
-
Constructor Details
-
KmlPolygonStyle
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 isColor.WHITE
.- Throws:
IllegalArgumentException
- if color is null- Since:
- 200.0.0
-
KmlPolygonStyle
Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced byKmlPolygonStyle(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 currentKmlLineStyle
. Default is true.- Returns:
- true if the polygon is outlined, false otherwise
-
KmlPolygonStyle(Color)