public class TLcdKML22IconStyle extends TLcdKML22AbstractColorStyle implements ILcdCache
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.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractColorStyleObjectExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractColorStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractSubStyleObjectExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractSubStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
COLOR_MODE_PROPERTY
Data property that maps to the
colorMode element. |
static TLcdDataProperty |
COLOR_PROPERTY
Data property that maps to the
color element. |
static TLcdDataProperty |
HEADING_PROPERTY
Data property that maps to the
heading element. |
static TLcdDataProperty |
HOT_SPOT_PROPERTY
Data property that maps to the
hotSpot element. |
static TLcdDataProperty |
ICON_LINK_PROPERTY
Data property that maps to the
Icon element. |
static TLcdDataProperty |
ICON_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
IconStyleObjectExtensionGroup element. |
static TLcdDataProperty |
ICON_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
IconStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
SCALE_PROPERTY
Data property that maps to the
scale element. |
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
Constructor and Description |
---|
TLcdKML22IconStyle(TLcdDataType aType)
Creates a new
TLcdKML22IconStyle with a custom TLcdDataType . |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
TLcdDataObject |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
Object |
getCachedObject(Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
Double |
getHeading()
Returns the heading of this icon style.
|
TLcdKML22Vec2 |
getHotSpot()
Returns the value of the property that maps to the
hotSpot element. |
TLcdKML22BasicLink |
getIconLink()
Returns the value of the property that maps to the
Icon element. |
Double |
getScale()
Returns the scale of this icon style.
|
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
Object |
removeCachedObject(Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
void |
setColor(Color aValue)
Sets the value of the property that maps to the
color element. |
void |
setColorMode(ELcdKML22ColorMode aValue)
Sets the value of the property that maps to the
colorMode element. |
void |
setHeading(Double aValue)
Sets the value of the property that maps to the
heading element. |
void |
setHotSpot(TLcdKML22Vec2 aValue)
Sets the value of the property that maps to the
hotSpot element. |
void |
setIconLink(TLcdKML22BasicLink aValue)
Sets the value of the property that maps to the
Icon element. |
void |
setScale(Double aValue)
Sets the value of the property that maps to the
scale element. |
getColor, getColorMode
getId, getTargetId, setId, setTargetId
clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
public static final TLcdDataProperty SCALE_PROPERTY
scale
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty HEADING_PROPERTY
heading
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty ICON_LINK_PROPERTY
Icon
element.
The possible values for this property are instances of TLcdKML22BasicLink
.public static final TLcdDataProperty HOT_SPOT_PROPERTY
hotSpot
element.
The possible values for this property are instances of TLcdKML22Vec2
.public static final TLcdDataProperty ICON_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
IconStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty ICON_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
IconStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public static final TLcdDataProperty COLOR_PROPERTY
color
element.
The possible values for this property are instances of Color
.public static final TLcdDataProperty COLOR_MODE_PROPERTY
colorMode
element.
The possible values for this property are instances of ELcdKML22ColorMode
.public static final TLcdDataProperty ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
AbstractColorStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
AbstractColorStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public static final TLcdDataProperty ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
AbstractSubStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
AbstractSubStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public TLcdKML22IconStyle(TLcdDataType aType)
TLcdKML22IconStyle
with a custom TLcdDataType
.aType
- a custom TLcdDataType
public Double getScale()
public Double getHeading()
public void insertIntoCache(Object aKey, Object aObject)
ILcdCache
insertIntoCache
in interface ILcdCache
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.public Object getCachedObject(Object aKey)
ILcdCache
getCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public Object removeCachedObject(Object aKey)
ILcdCache
removeCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public void clearCache()
ILcdCache
clearCache
in interface ILcdCache
public TLcdDataObject clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public void setScale(Double aValue)
scale
element.aValue
- the value to set for the SCALE_PROPERTY
property.public void setHeading(Double aValue)
heading
element.aValue
- the value to set for the HEADING_PROPERTY
property.public TLcdKML22BasicLink getIconLink()
Icon
element.ICON_LINK_PROPERTY
property.public void setIconLink(TLcdKML22BasicLink aValue)
Icon
element.aValue
- the value to set for the ICON_LINK_PROPERTY
property.public TLcdKML22Vec2 getHotSpot()
hotSpot
element.HOT_SPOT_PROPERTY
property.public void setHotSpot(TLcdKML22Vec2 aValue)
hotSpot
element.aValue
- the value to set for the HOT_SPOT_PROPERTY
property.public void setColor(Color aValue)
color
element.aValue
- the value to set for the COLOR_PROPERTY
property.public void setColorMode(ELcdKML22ColorMode aValue)
colorMode
element.aValue
- the value to set for the COLOR_MODE_PROPERTY
property.