- Direct Known Subclasses:
KmlIconStyle,KmlLabelStyle,KmlLineStyle,KmlPolygonStyle
For a KmlNode with a KmlIcon, the color that is specified is blended with the existing color of the base image. Due to this blending effect, to have the exact color appear that was specified by the color property, it is recommended that the base image be white. Also note that, because color defaults to white, the color property of KmlIcon will result in the original color of the base image.
- Since:
- 100.6.0
-
Property Summary
Properties -
Method Summary
Modifier and TypeMethodDescriptionThe color of the KmlColorStyle.getColor()Gets the value of thecolorproperty.Gets the color mode of the KmlColorStyle.voidsetColor(int color) Deprecated, for removal: This API element is subject to removal in a future version.voidSets the value of thecolorproperty.voidsetColorMode(KmlColorMode kmlColorMode) Sets the color mode of the KmlColorStyle.
-
Property Details
-
color
The color of the KmlColorStyle.The default color is
Color.WHITE.Attempting to set the color to null will throw a NullPointerException exception.
- Since:
- 200.0.0
- See Also:
-
-
Method Details
-
colorProperty
The color of the KmlColorStyle.The default color is
Color.WHITE.Attempting to set the color to null will throw a NullPointerException exception.
- Returns:
- the
colorproperty - Since:
- 200.0.0
- See Also:
-
getColor
Gets the value of thecolorproperty.- Property description:
- The color of the KmlColorStyle.
The default color is
Color.WHITE.Attempting to set the color to null will throw a NullPointerException exception.
- Returns:
- the value of the
colorproperty - Since:
- 200.0.0
- See Also:
-
setColor
Sets the value of thecolorproperty.- Property description:
- The color of the KmlColorStyle.
The default color is
Color.WHITE.Attempting to set the color to null will throw a NullPointerException exception.
- Parameters:
color- the value for thecolorproperty- Since:
- 200.0.0
- See Also:
-
setColor
Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced bysetColor(Color)Sets the color of the KmlColorStyle.- Parameters:
color- the color in 0xAARRGGBB format- Since:
- 100.6.0
-
getColorMode
Gets the color mode of the KmlColorStyle.- Returns:
- a KmlColorMode
- Since:
- 100.6.0
-
setColorMode
Sets the color mode of the KmlColorStyle.- Parameters:
kmlColorMode- a KmlColorMode- Throws:
IllegalArgumentException- if kmlColorMode is null- Since:
- 100.6.0
-
setColor(Color)