Class TLcdKML22AbstractColorStyle
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.kml22.model.TLcdKML22AbstractObject
com.luciad.format.kml22.model.style.TLcdKML22AbstractSubStyle
com.luciad.format.kml22.model.style.TLcdKML22AbstractColorStyle
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
- Direct Known Subclasses:
TLcdKML22IconStyle
,TLcdKML22LabelStyle
,TLcdKML22LineStyle
,TLcdKML22PolyStyle
Domain class modeling the KML AbstractColorStyleType type.
- Since:
- 10.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theAbstractColorStyleObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractColorStyleSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractSubStyleObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractSubStyleSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to thecolorMode
element.static final TLcdDataProperty
Data property that maps to thecolor
element.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdKML22AbstractColorStyle
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Retrieves the color for this abstract color style.Returns the color mode of this abstract color style.void
Sets the value of the property that maps to thecolor
element.void
setColorMode
(ELcdKML22ColorMode aValue) Sets the value of the property that maps to thecolorMode
element.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
-
Field Details
-
COLOR_PROPERTY
Data property that maps to thecolor
element. The possible values for this property are instances ofColor
. -
COLOR_MODE_PROPERTY
Data property that maps to thecolorMode
element. The possible values for this property are instances ofELcdKML22ColorMode
. -
ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractColorStyleSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractColorStyleObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
. -
ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractSubStyleSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractSubStyleObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22AbstractColorStyle
Creates a newTLcdKML22AbstractColorStyle
with a customTLcdDataType
.- Parameters:
aType
- a customTLcdDataType
-
-
Method Details
-
getColor
Retrieves the color for this abstract color style. If no color was defined, it will return a default color, otherwise it will return super#getColor().
If the color mode is random, this method will generate a random color and return it.
- Returns:
- a Color
-
getColorMode
Returns the color mode of this abstract color style. If no color mode was defined, it will return ELcdKML22ColorMode.NORMAL.- Returns:
- An ELcdKML22ColorMode
-
setColor
Sets the value of the property that maps to thecolor
element.- Parameters:
aValue
- the value to set for theCOLOR_PROPERTY
property.
-
setColorMode
Sets the value of the property that maps to thecolorMode
element.- Parameters:
aValue
- the value to set for theCOLOR_MODE_PROPERTY
property.
-