NASA World Wind

gov.nasa.worldwind.ogc.kml
Class KMLListStyle

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.kml.KMLAbstractObject
          extended by gov.nasa.worldwind.ogc.kml.KMLAbstractSubStyle
              extended by gov.nasa.worldwind.ogc.kml.KMLListStyle
All Implemented Interfaces:
MessageListener, XMLEventParser

public class KMLListStyle
extends KMLAbstractSubStyle

Represents the KML ListStyle element and provides access to its contents.


Field Summary
protected  List<KMLItemIcon> itemIcons
           
 
Fields inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractObject
MSG_BOX_CHANGED, MSG_GEOMETRY_CHANGED, MSG_LINK_CHANGED, MSG_STYLE_CHANGED, MSG_TIME_CHANGED, MSG_VIEW_CHANGED
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
KMLListStyle(String namespaceURI)
          Construct an instance.
 
Method Summary
protected  void addItemIcon(KMLItemIcon o)
           
 void applyChange(KMLAbstractObject sourceValues)
           
protected  void doAddEventContent(Object o, XMLEventParserContext ctx, XMLEvent event, Object... args)
           
 String getBgColor()
           
 List<KMLItemIcon> getItemIcons()
           
 String getListItemType()
           
 Integer getMaxSnippetLines()
           
protected  void mergeItemIcons(KMLListStyle sourceStyle)
          Merge a list of incoming item icons with the current list.
 
Methods inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractObject
getId, getRoot, getTargetId, onChange, onMessage
 
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
allocate, doAddCharacters, doAddEventAttribute, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemIcons

protected List<KMLItemIcon> itemIcons
Constructor Detail

KMLListStyle

public KMLListStyle(String namespaceURI)
Construct an instance.

Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
Method Detail

addItemIcon

protected void addItemIcon(KMLItemIcon o)

applyChange

public void applyChange(KMLAbstractObject sourceValues)
Overrides:
applyChange in class KMLAbstractSubStyle

doAddEventContent

protected void doAddEventContent(Object o,
                                 XMLEventParserContext ctx,
                                 XMLEvent event,
                                 Object... args)
                          throws XMLStreamException
Overrides:
doAddEventContent in class AbstractXMLEventParser
Throws:
XMLStreamException

getBgColor

public String getBgColor()

getItemIcons

public List<KMLItemIcon> getItemIcons()

getListItemType

public String getListItemType()

getMaxSnippetLines

public Integer getMaxSnippetLines()

mergeItemIcons

protected void mergeItemIcons(KMLListStyle sourceStyle)
Merge a list of incoming item icons with the current list. If an incoming item icon has the same ID as an existing one, replace the existing one, otherwise just add the incoming one.

Parameters:
sourceStyle - the incoming item icons.

NASA World Wind