Package com.esri.arcgisruntime.ogc.kml
Class KmlLineStyle
- java.lang.Object
-
- com.esri.arcgisruntime.ogc.kml.KmlColorStyle
-
- com.esri.arcgisruntime.ogc.kml.KmlLineStyle
-
public final class KmlLineStyle extends KmlColorStyle
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
-
-
Constructor Summary
Constructors Constructor Description KmlLineStyle(int color, double width)
Constructs a KmlLineStyle with the specified color and width.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getWidth()
Gets the width of the KML line style, in pixels.void
setWidth(double width)
Sets the width of the KML line style.-
Methods inherited from class com.esri.arcgisruntime.ogc.kml.KmlColorStyle
getColor, getColorMode, setColor, setColorMode
-
-
-
-
Constructor Detail
-
KmlLineStyle
public KmlLineStyle(int color, double width)
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 Detail
-
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
-
-