gov.nasa.worldwind.ogc.kml
Class KMLStyle
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.kml.KMLAbstractObject
gov.nasa.worldwind.ogc.kml.KMLAbstractStyleSelector
gov.nasa.worldwind.ogc.kml.KMLStyle
- All Implemented Interfaces:
- MessageListener, XMLEventParser
public class KMLStyle
- extends KMLAbstractStyleSelector
Represents the KML Style element and provides access to its contents.
|
Constructor Summary |
KMLStyle(String namespaceURI)
Construct an instance. |
| Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setFields, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KMLStyle
public KMLStyle(String namespaceURI)
- Construct an instance.
- Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
applyChange
public void applyChange(KMLAbstractObject sourceValues)
- Overrides:
applyChange in class KMLAbstractObject
getBaloonStyle
public KMLBalloonStyle getBaloonStyle()
getIconStyle
public KMLIconStyle getIconStyle()
getLabelStyle
public KMLLabelStyle getLabelStyle()
getLineStyle
public KMLLineStyle getLineStyle()
getListStyle
public KMLListStyle getListStyle()
getPolyStyle
public KMLPolyStyle getPolyStyle()
mergeSubStyle
public KMLAbstractSubStyle mergeSubStyle(KMLAbstractSubStyle subStyle)
- Adds the sub-style fields of a specified sub-style to this one's fields if they don't already exist.
- Parameters:
subStyle - the sub-style to merge with this one.
- Returns:
- the substyle passed in as the parameter.
- Throws:
IllegalArgumentException - if the sub-style parameter is null.
setField
public void setField(String keyName,
Object value)
- Overridden to handle deprecated
labelColor field. The labelColor field is
deprecated, and has been replaced by LabelStyle. If labelColor is set this method will apply the
color to the LabelStyle, creating a new LabelStyle if necessary.
- Overrides:
setField in class AbstractXMLEventParser