Package com.esri.arcgisruntime.ogc.kml
Class KmlLabelStyle
- java.lang.Object
-
- com.esri.arcgisruntime.ogc.kml.KmlColorStyle
-
- com.esri.arcgisruntime.ogc.kml.KmlLabelStyle
-
public final class KmlLabelStyle extends KmlColorStyle
Specifies how the name of aKmlNodeis 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
-
-
Constructor Summary
Constructors Constructor Description KmlLabelStyle(int color, double scale)Constructs a KML label style with a specified label color and scale.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetScale()Gets the scale to resize the label.voidsetScale(double scale)Sets the scale to resize the label.-
Methods inherited from class com.esri.arcgisruntime.ogc.kml.KmlColorStyle
getColor, getColorMode, setColor, setColorMode
-
-
-
-
Constructor Detail
-
KmlLabelStyle
public KmlLabelStyle(int color, double scale)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 Detail
-
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
-
-