A maps between two different Styles. Typically a element is
used to provide separate normal and highlighted styles for a placemark, so that
the highlighted version appears when the user mouses over the icon in Google Earth.
Syntax:
<StyleMap id="ID">
<!-- extends StyleSelector -->
<!-- elements specific to StyleMap -->
<Pair id="ID">
<key>normal</key> <!-- kml:styleStateEnum: normal or highlight -->
<styleUrl>... </styleUrl> or <Style>...</Style>
</Pair>
</StyleMap>
Extends:
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
pair
protected java.util.List<Pair > pair
(required)
Defines a key/value pair that maps a mode (normal or highlight) to the predefined
. contains two elements (both are required): , which identifies
the key or
styleMapSimpleExtension
protected java.util.List<java.lang.Object> styleMapSimpleExtension
styleMapObjectExtension
protected java.util.List<AbstractObject > styleMapObjectExtension
This is an abstract base class and cannot be used directly in a KML file. It provides
the id attribute, which allows unique identification of a KML element, and the targetId
attribute, which is used to reference objects that have already been loaded into
Google Earth. The id attribute must be assigned if the mechanism is to
be used.
Syntax:
<!-- abstract element; do not create -->
<!-- Object id="ID" targetId="NCName" -->
<!-- /Object > -->
StyleMap
public StyleMap ()
getPair
public java.util.List<Pair > getPair ()
See Also: pair
getStyleMapSimpleExtension
public java.util.List<java.lang.Object> getStyleMapSimpleExtension ()
See Also: styleMapSimpleExtension
getStyleMapObjectExtension
public java.util.List<AbstractObject > getStyleMapObjectExtension ()
See Also: styleMapObjectExtension
hashCode
public int hashCode ()
Overrides: hashCode
in class StyleSelector
equals
public boolean equals (java.lang.Object obj)
Overrides: equals
in class StyleSelector
createAndAddPair
public Pair createAndAddPair ()
Creates a new instance of Pair
and adds it to pair.
This method is a short version for:
Pair pair = new Pair();
this.getPair().add(pair);
setPair
public void setPair (java.util.List<Pair > pair)
Parameters: pair
- See Also: pair
addToPair
public StyleMap addToPair (Pair pair)
add a value to the pair property collection
Parameters: pair
- Objects of the following type are allowed in the list: Pair
Returns: true (as general contract of Collection.add ).
setStyleMapSimpleExtension
public void setStyleMapSimpleExtension (java.util.List<java.lang.Object> styleMapSimpleExtension)
Parameters: styleMapSimpleExtension
- See Also: styleMapSimpleExtension
addToStyleMapSimpleExtension
public StyleMap addToStyleMapSimpleExtension (java.lang.Object styleMapSimpleExtension)
add a value to the styleMapSimpleExtension property collection
Parameters: styleMapSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setStyleMapObjectExtension
public void setStyleMapObjectExtension (java.util.List<AbstractObject > styleMapObjectExtension)
Parameters: styleMapObjectExtension
- See Also: styleMapObjectExtension
addToStyleMapObjectExtension
public StyleMap addToStyleMapObjectExtension (AbstractObject styleMapObjectExtension)
add a value to the styleMapObjectExtension property collection
Parameters: styleMapObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
setObjectSimpleExtension
public void setObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Overrides: setObjectSimpleExtension
in class StyleSelector
See Also: objectSimpleExtension
addToObjectSimpleExtension
public StyleMap addToObjectSimpleExtension (java.lang.Object objectSimpleExtension)
Description copied from class: AbstractObject
add a value to the objectSimpleExtension property collection
Overrides: addToObjectSimpleExtension
in class StyleSelector
Parameters: objectSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setStyleSelectorSimpleExtension
public void setStyleSelectorSimpleExtension (java.util.List<java.lang.Object> styleSelectorSimpleExtension)
Overrides: setStyleSelectorSimpleExtension
in class StyleSelector
See Also: styleSelectorSimpleExtension
addToStyleSelectorSimpleExtension
public StyleMap addToStyleSelectorSimpleExtension (java.lang.Object styleSelectorSimpleExtension)
Description copied from class: StyleSelector
add a value to the styleSelectorSimpleExtension property collection
Overrides: addToStyleSelectorSimpleExtension
in class StyleSelector
Parameters: styleSelectorSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setStyleSelectorObjectExtension
public void setStyleSelectorObjectExtension (java.util.List<AbstractObject > styleSelectorObjectExtension)
Overrides: setStyleSelectorObjectExtension
in class StyleSelector
See Also: styleSelectorObjectExtension
addToStyleSelectorObjectExtension
public StyleMap addToStyleSelectorObjectExtension (AbstractObject styleSelectorObjectExtension)
Description copied from class: StyleSelector
add a value to the styleSelectorObjectExtension property collection
Overrides: addToStyleSelectorObjectExtension
in class StyleSelector
Parameters: styleSelectorObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
withPair
public StyleMap withPair (java.util.List<Pair > pair)
fluent setter
Parameters: pair
- required parameterSee Also: #setPair(List)
withStyleMapSimpleExtension
public StyleMap withStyleMapSimpleExtension (java.util.List<java.lang.Object> styleMapSimpleExtension)
fluent setter
Parameters: styleMapSimpleExtension
- required parameterSee Also: #setStyleMapSimpleExtension(List)
withStyleMapObjectExtension
public StyleMap withStyleMapObjectExtension (java.util.List<AbstractObject > styleMapObjectExtension)
fluent setter
Parameters: styleMapObjectExtension
- required parameterSee Also: #setStyleMapObjectExtension(List)
withObjectSimpleExtension
public StyleMap withObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter
Overrides: withObjectSimpleExtension
in class StyleSelector
Parameters: objectSimpleExtension
- required parameterSee Also: #setObjectSimpleExtension(List)
withId
public StyleMap withId (java.lang.String id)
Description copied from class: AbstractObject
fluent setter
Overrides: withId
in class StyleSelector
Parameters: id
- required parameterSee Also: AbstractObject.setId(String)
withTargetId
public StyleMap withTargetId (java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter
Overrides: withTargetId
in class StyleSelector
Parameters: targetId
- required parameterSee Also: AbstractObject.setTargetId(String)
withStyleSelectorSimpleExtension
public StyleMap withStyleSelectorSimpleExtension (java.util.List<java.lang.Object> styleSelectorSimpleExtension)
Description copied from class: StyleSelector
fluent setter
Overrides: withStyleSelectorSimpleExtension
in class StyleSelector
Parameters: styleSelectorSimpleExtension
- required parameterSee Also: #setStyleSelectorSimpleExtension(List)
withStyleSelectorObjectExtension
public StyleMap withStyleSelectorObjectExtension (java.util.List<AbstractObject > styleSelectorObjectExtension)
Description copied from class: StyleSelector
fluent setter
Overrides: withStyleSelectorObjectExtension
in class StyleSelector
Parameters: styleSelectorObjectExtension
- required parameterSee Also: #setStyleSelectorObjectExtension(List)
clone
public StyleMap clone ()
Overrides: clone
in class StyleSelector