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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theAbstractColorStyleObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractColorStyleSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractSubStyleObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractSubStyleSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to thecolorModeelement.static final TLcdDataPropertyData property that maps to thecolorelement.static final TLcdDataPropertyData property that maps to theheadingelement.static final TLcdDataPropertyData property that maps to thehotSpotelement.static final TLcdDataPropertyData property that maps to theIconelement.static final TLcdDataPropertyData property that maps to theIconStyleObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theIconStyleSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to thescaleelement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdKML22IconStyle(TLcdDataType aType) Creates a newTLcdKML22IconStylewith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears 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 thehotSpotelement.Returns the value of the property that maps to theIconelement.getScale()Returns the scale of this icon style.voidinsertIntoCache(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.voidSets the value of the property that maps to thecolorelement.voidsetColorMode(ELcdKML22ColorMode aValue) Sets the value of the property that maps to thecolorModeelement.voidsetHeading(Double aValue) Sets the value of the property that maps to theheadingelement.voidsetHotSpot(TLcdKML22Vec2 aValue) Sets the value of the property that maps to thehotSpotelement.voidsetIconLink(TLcdKML22BasicLink aValue) Sets the value of the property that maps to theIconelement.voidSets the value of the property that maps to thescaleelement.Methods inherited from class com.luciad.format.kml22.model.style.TLcdKML22AbstractColorStyle
getColor, getColorModeMethods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetIdMethods 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 thescaleelement. The possible values for this property are instances ofDouble. -
HEADING_PROPERTY
Data property that maps to theheadingelement. The possible values for this property are instances ofDouble. -
ICON_LINK_PROPERTY
Data property that maps to theIconelement. The possible values for this property are instances ofTLcdKML22BasicLink. -
HOT_SPOT_PROPERTY
Data property that maps to thehotSpotelement. The possible values for this property are instances ofTLcdKML22Vec2. -
ICON_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theIconStyleSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ICON_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theIconStyleObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>. -
COLOR_PROPERTY
Data property that maps to thecolorelement. The possible values for this property are instances ofColor. -
COLOR_MODE_PROPERTY
Data property that maps to thecolorModeelement. The possible values for this property are instances ofELcdKML22ColorMode. -
ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractColorStyleSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractColorStyleObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>. -
ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractSubStyleSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractSubStyleObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22IconStyle
Creates a newTLcdKML22IconStylewith 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:ILcdCacheInserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCachein 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:ILcdCacheLooks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObjectin 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:ILcdCacheLooks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObjectin 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:ILcdCacheClears the cache.- Specified by:
clearCachein interfaceILcdCache
-
clone
Description copied from class:TLcdDataObjectReturns 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
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein 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 thescaleelement.- Parameters:
aValue- the value to set for theSCALE_PROPERTYproperty.
-
setHeading
Sets the value of the property that maps to theheadingelement.- Parameters:
aValue- the value to set for theHEADING_PROPERTYproperty.
-
getIconLink
Returns the value of the property that maps to theIconelement.- Returns:
- the value of the
ICON_LINK_PROPERTYproperty.
-
setIconLink
Sets the value of the property that maps to theIconelement.- Parameters:
aValue- the value to set for theICON_LINK_PROPERTYproperty.
-
getHotSpot
Returns the value of the property that maps to thehotSpotelement.- Returns:
- the value of the
HOT_SPOT_PROPERTYproperty.
-
setHotSpot
Sets the value of the property that maps to thehotSpotelement.- Parameters:
aValue- the value to set for theHOT_SPOT_PROPERTYproperty.
-
setColor
Sets the value of the property that maps to thecolorelement.- Parameters:
aValue- the value to set for theCOLOR_PROPERTYproperty.
-
setColorMode
Sets the value of the property that maps to thecolorModeelement.- Parameters:
aValue- the value to set for theCOLOR_MODE_PROPERTYproperty.
-