Package 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.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
Constructors Constructor Description KMLListStyle(java.lang.String namespaceURI)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addItemIcon(KMLItemIcon o)
void
applyChange(KMLAbstractObject sourceValues)
protected void
doAddEventContent(java.lang.Object o, XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)
java.lang.String
getBgColor()
java.util.List<KMLItemIcon>
getItemIcons()
java.lang.String
getListItemType()
java.lang.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, setNamespaceURI, setParent
-
-
-
-
Field Detail
-
itemIcons
protected java.util.List<KMLItemIcon> itemIcons
-
-
Method Detail
-
doAddEventContent
protected void doAddEventContent(java.lang.Object o, XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
- Overrides:
doAddEventContent
in classAbstractXMLEventParser
- Throws:
javax.xml.stream.XMLStreamException
-
getListItemType
public java.lang.String getListItemType()
-
getBgColor
public java.lang.String getBgColor()
-
addItemIcon
protected void addItemIcon(KMLItemIcon o)
-
getItemIcons
public java.util.List<KMLItemIcon> getItemIcons()
-
getMaxSnippetLines
public java.lang.Integer getMaxSnippetLines()
-
applyChange
public void applyChange(KMLAbstractObject sourceValues)
- Overrides:
applyChange
in classKMLAbstractSubStyle
-
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.
-
-