java.lang.Object
com.esri.arcgisruntime.ogc.kml.KmlColorStyle
com.esri.arcgisruntime.ogc.kml.KmlLabelStyle
Specifies how the name of a
KmlNode
is draw, including color and style.
Controls how the <name>
of a KmlNode is displayed. Determines color and scale of the name label.
Corresponds to a <LabelStyle>
is a KML document.
- Since:
- 100.6.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.ogc.kml.KmlColorStyle
color
-
Constructor Summary
ConstructorDescriptionKmlLabelStyle
(int color, double scale) Deprecated, for removal: This API element is subject to removal in a future version.KmlLabelStyle
(Color labelColor, double scale) Constructs a KML label style with a specified label color and scale. -
Method Summary
Methods inherited from class com.esri.arcgisruntime.ogc.kml.KmlColorStyle
colorProperty, getColor, getColorMode, setColor, setColor, setColorMode
-
Constructor Details
-
KmlLabelStyle
Constructs a KML label style with a specified label color and scale.- Parameters:
labelColor
- color of the label. Default isColor.WHITE
.scale
- scale to resize the label. Default is 1.0.- Throws:
IllegalArgumentException
- if labelColor is nullIllegalArgumentException
- if scale is negative- Since:
- 200.0.0
-
KmlLabelStyle
Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced byKmlLabelStyle(Color, double)
Constructs a KML label style with a specified label color and scale.- Parameters:
color
- color of the label in 0xAARRGGBB format. Default is 0xFFFFFFFF.scale
- scale to resize the label. Default is 1.0.- Throws:
IllegalArgumentException
- if scale is negative- Since:
- 100.6.0
-
-
Method Details
-
getScale
public double getScale()Gets the scale to resize the label. Default is 1.0.- Returns:
- the scale to resize the label
- Since:
- 100.6.0
-
setScale
public void setScale(double scale) Sets the scale to resize the label.- Parameters:
scale
- the scale to resize the label- Throws:
IllegalArgumentException
- if scale is negative- Since:
- 100.6.0
-
KmlLabelStyle(Color, double)