de.micromata.opengis.kml.v_2_2_0
Class StyleMap

java.lang.Object
  extended by de.micromata.opengis.kml.v_2_2_0.AbstractObject
      extended by de.micromata.opengis.kml.v_2_2_0.StyleSelector
          extended by de.micromata.opengis.kml.v_2_2_0.StyleMap
All Implemented Interfaces:
java.lang.Cloneable

public class StyleMap
extends StyleSelector
implements java.lang.Cloneable

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:


Field Summary
protected  java.util.List<Pair> pair
           (required)
protected  java.util.List<AbstractObject> styleMapObjectExtension
          
protected  java.util.List<java.lang.Object> styleMapSimpleExtension
           
 
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.StyleSelector
styleSelectorObjectExtension, styleSelectorSimpleExtension
 
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
id, objectSimpleExtension, targetId
 
Constructor Summary
StyleMap()
           
 
Method Summary
 StyleMap addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
          add a value to the objectSimpleExtension property collection
 StyleMap addToPair(Pair pair)
          add a value to the pair property collection
 StyleMap addToStyleMapObjectExtension(AbstractObject styleMapObjectExtension)
          add a value to the styleMapObjectExtension property collection
 StyleMap addToStyleMapSimpleExtension(java.lang.Object styleMapSimpleExtension)
          add a value to the styleMapSimpleExtension property collection
 StyleMap addToStyleSelectorObjectExtension(AbstractObject styleSelectorObjectExtension)
          add a value to the styleSelectorObjectExtension property collection
 StyleMap addToStyleSelectorSimpleExtension(java.lang.Object styleSelectorSimpleExtension)
          add a value to the styleSelectorSimpleExtension property collection
 StyleMap clone()
           
 Pair createAndAddPair()
          Creates a new instance of Pair and adds it to pair.
 boolean equals(java.lang.Object obj)
           
 java.util.List<Pair> getPair()
           
 java.util.List<AbstractObject> getStyleMapObjectExtension()
           
 java.util.List<java.lang.Object> getStyleMapSimpleExtension()
           
 int hashCode()
           
 void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
           
 void setPair(java.util.List<Pair> pair)
           
 void setStyleMapObjectExtension(java.util.List<AbstractObject> styleMapObjectExtension)
           
 void setStyleMapSimpleExtension(java.util.List<java.lang.Object> styleMapSimpleExtension)
           
 void setStyleSelectorObjectExtension(java.util.List<AbstractObject> styleSelectorObjectExtension)
           
 void setStyleSelectorSimpleExtension(java.util.List<java.lang.Object> styleSelectorSimpleExtension)
           
 StyleMap withId(java.lang.String id)
          fluent setter
 StyleMap withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
          fluent setter
 StyleMap withPair(java.util.List<Pair> pair)
          fluent setter
 StyleMap withStyleMapObjectExtension(java.util.List<AbstractObject> styleMapObjectExtension)
          fluent setter
 StyleMap withStyleMapSimpleExtension(java.util.List<java.lang.Object> styleMapSimpleExtension)
          fluent setter
 StyleMap withStyleSelectorObjectExtension(java.util.List<AbstractObject> styleSelectorObjectExtension)
          fluent setter
 StyleMap withStyleSelectorSimpleExtension(java.util.List<java.lang.Object> styleSelectorSimpleExtension)
          fluent setter
 StyleMap withTargetId(java.lang.String targetId)
          fluent setter
 
Methods inherited from class de.micromata.opengis.kml.v_2_2_0.StyleSelector
getStyleSelectorObjectExtension, getStyleSelectorSimpleExtension
 
Methods inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
getId, getObjectSimpleExtension, getTargetId, setId, setTargetId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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