gov.nasa.worldwind.ogc.kml
Class KMLListStyle
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.kml.KMLAbstractObject
gov.nasa.worldwind.ogc.kml.KMLAbstractSubStyle
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.
| 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 |
itemIcons
protected List<KMLItemIcon> itemIcons
KMLListStyle
public KMLListStyle(String namespaceURI)
- Construct an instance.
- Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
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.