Class TLcdKML22IconStyle
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
com.luciad.format.kml22.model.style.TLcdKML22IconStyle
- All Implemented Interfaces:
ILcdDataObject
,ILcdCache
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Domain class modeling the KML IconStyleType type.
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractColorStyleGroup Specifies how icons for kml:Placemarks and kml:PhotoOverlay with a kml:Point geometry are drawn in an earth browser's list and geographic views. The color specified in the kml:color element of kml:IconStyle is blended with the color of the icon. kml:IconStyle should contain at least one child element outside of an update context, that is when not a descendant of kml:Update.
- 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.static final TLcdDataProperty
Data property that maps to theheading
element.static final TLcdDataProperty
Data property that maps to thehotSpot
element.static final TLcdDataProperty
Data property that maps to theIcon
element.static final TLcdDataProperty
Data property that maps to theIconStyleObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theIconStyleSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to thescale
element.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionTLcdKML22IconStyle
(TLcdDataType aType) Creates a newTLcdKML22IconStyle
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the cache.Returns a deep clone of this object.getCachedObject
(Object aKey) Looks up and returns the cached Object corresponding to the given key.Returns the heading of this icon style.Returns the value of the property that maps to thehotSpot
element.Returns the value of the property that maps to theIcon
element.getScale()
Returns the scale of this icon style.void
insertIntoCache
(Object aKey, Object aObject) Inserts a cache Object corresponding to the given key Object.removeCachedObject
(Object aKey) Looks up and removes the cached Object corresponding to the given key.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.void
setHeading
(Double aValue) Sets the value of the property that maps to theheading
element.void
setHotSpot
(TLcdKML22Vec2 aValue) Sets the value of the property that maps to thehotSpot
element.void
setIconLink
(TLcdKML22BasicLink aValue) Sets the value of the property that maps to theIcon
element.void
Sets the value of the property that maps to thescale
element.Methods inherited from class com.luciad.format.kml22.model.style.TLcdKML22AbstractColorStyle
getColor, getColorMode
Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
SCALE_PROPERTY
Data property that maps to thescale
element. The possible values for this property are instances ofDouble
. -
HEADING_PROPERTY
Data property that maps to theheading
element. The possible values for this property are instances ofDouble
. -
ICON_LINK_PROPERTY
Data property that maps to theIcon
element. The possible values for this property are instances ofTLcdKML22BasicLink
. -
HOT_SPOT_PROPERTY
Data property that maps to thehotSpot
element. The possible values for this property are instances ofTLcdKML22Vec2
. -
ICON_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theIconStyleSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
ICON_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theIconStyleObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
. -
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
-
TLcdKML22IconStyle
Creates a newTLcdKML22IconStyle
with a customTLcdDataType
.- Parameters:
aType
- a customTLcdDataType
-
-
Method Details
-
getScale
Returns the scale of this icon style. If no scale was defined, it will return the default value of (1.0).- Returns:
- a scale
-
getHeading
Returns the heading of this icon style. If no heading was defined, it will return the default heading of (0.0).- Returns:
- a heading
-
insertIntoCache
Description copied from interface:ILcdCache
Inserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCache
in interfaceILcdCache
- Parameters:
aKey
- the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself:insertIntoCache(this, ...)
.aObject
- the Object to be cached.
-
getCachedObject
Description copied from interface:ILcdCache
Looks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there is no Object corresponding to the given key.
-
removeCachedObject
Description copied from interface:ILcdCache
Looks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there was no Object corresponding to the given key.
-
clearCache
public void clearCache()Description copied from interface:ILcdCache
Clears the cache.- Specified by:
clearCache
in interfaceILcdCache
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject
, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()
method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneable
orILcdCloneable
then this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clone
in interfaceILcdDeepCloneable
- Overrides:
clone
in classTLcdDataObject
- Parameters:
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
setScale
Sets the value of the property that maps to thescale
element.- Parameters:
aValue
- the value to set for theSCALE_PROPERTY
property.
-
setHeading
Sets the value of the property that maps to theheading
element.- Parameters:
aValue
- the value to set for theHEADING_PROPERTY
property.
-
getIconLink
Returns the value of the property that maps to theIcon
element.- Returns:
- the value of the
ICON_LINK_PROPERTY
property.
-
setIconLink
Sets the value of the property that maps to theIcon
element.- Parameters:
aValue
- the value to set for theICON_LINK_PROPERTY
property.
-
getHotSpot
Returns the value of the property that maps to thehotSpot
element.- Returns:
- the value of the
HOT_SPOT_PROPERTY
property.
-
setHotSpot
Sets the value of the property that maps to thehotSpot
element.- Parameters:
aValue
- the value to set for theHOT_SPOT_PROPERTY
property.
-
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.
-