NASA World Wind

gov.nasa.worldwind.ogc.kml
Class KMLPolygon

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.KMLAbstractGeometry
              extended by gov.nasa.worldwind.ogc.kml.KMLPolygon
All Implemented Interfaces:
MessageListener, XMLEventParser

public class KMLPolygon
extends KMLAbstractGeometry

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


Field Summary
protected  List<KMLLinearRing> innerBoundaries
           
 
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
KMLPolygon(String namespaceURI)
          Construct an instance.
 
Method Summary
protected  void addInnerBoundary(KMLLinearRing o)
           
 void applyChange(KMLAbstractObject sourceValues)
           
protected  void doAddEventContent(Object o, XMLEventParserContext ctx, XMLEvent event, Object... args)
           
 String getAltitudeMode()
           
 Boolean getExtrude()
           
 Iterable<? extends KMLLinearRing> getInnerBoundaries()
           
 KMLLinearRing getOuterBoundary()
           
 Boolean getTessellate()
           
 boolean isExtrude()
           
 
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

innerBoundaries

protected List<KMLLinearRing> innerBoundaries
Constructor Detail

KMLPolygon

public KMLPolygon(String namespaceURI)
Construct an instance.

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

addInnerBoundary

protected void addInnerBoundary(KMLLinearRing o)

applyChange

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

doAddEventContent

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

getAltitudeMode

public String getAltitudeMode()

getExtrude

public Boolean getExtrude()

getInnerBoundaries

public Iterable<? extends KMLLinearRing> getInnerBoundaries()

getOuterBoundary

public KMLLinearRing getOuterBoundary()

getTessellate

public Boolean getTessellate()

isExtrude

public boolean isExtrude()

NASA World Wind