java.lang.Object
com.esri.arcgisruntime.ogc.kml.KmlColorStyle
com.esri.arcgisruntime.ogc.kml.KmlLineStyle
Specifies the drawing style (color, color mode, and line width) for all line geometry. Line geometry includes the outlines
of outlined polygons and the extruded "tether" of Placemark icons (if extrusion is enabled).
- Since:
- 100.6.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.ogc.kml.KmlColorStyle
color
-
Constructor Summary
ConstructorDescriptionKmlLineStyle
(int color, double width) Deprecated, for removal: This API element is subject to removal in a future version.KmlLineStyle
(Color lineColor, double width) Constructs a KmlLineStyle with the specified color and width. -
Method Summary
Methods inherited from class com.esri.arcgisruntime.ogc.kml.KmlColorStyle
colorProperty, getColor, getColorMode, setColor, setColor, setColorMode
-
Constructor Details
-
KmlLineStyle
Constructs a KmlLineStyle with the specified color and width.- Parameters:
lineColor
- color of the line style. Default isColor.WHITE
.width
- width of the line style, in pixels. Default is 1.0.- Throws:
IllegalArgumentException
- if lineColor is nullIllegalArgumentException
- if width is negative- Since:
- 200.0.0
-
KmlLineStyle
Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced byKmlLineStyle(Color, double)
Constructs a KmlLineStyle with the specified color and width.- Parameters:
color
- color of the line style in 0xAARRGGBB format. Default is 0xFFFFFFFF.width
- width of the line style, in pixels. Default is 1.0.- Throws:
IllegalArgumentException
- if width is negative- Since:
- 100.6.0
-
-
Method Details
-
getWidth
public double getWidth()Gets the width of the KML line style, in pixels. Default is 1.0.- Returns:
- the width of the KML line style
- Since:
- 100.6.0
-
setWidth
public void setWidth(double width) Sets the width of the KML line style.- Parameters:
width
- the width of the KML line style- Throws:
IllegalArgumentException
- if width is negative- Since:
- 100.6.0
-
KmlLineStyle(Color, double)