Package gov.nasa.worldwind.ogc.kml
Class KMLAbstractObject
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.kml.KMLAbstractObject
-
- All Implemented Interfaces:
MessageListener,XMLEventParser
- Direct Known Subclasses:
GXAbstractTourPrimitive,GXLatLongQuad,GXPlaylist,KMLAbstractFeature,KMLAbstractGeometry,KMLAbstractLatLonBoxType,KMLAbstractStyleSelector,KMLAbstractSubStyle,KMLAbstractTimePrimitive,KMLAbstractView,KMLAlias,KMLBoundary,KMLData,KMLExtendedData,KMLImagePyramid,KMLItemIcon,KMLLink,KMLLocation,KMLLod,KMLOrientation,KMLPair,KMLRegion,KMLResourceMap,KMLRoot,KMLScale,KMLSchemaData,KMLSnippet,KMLStyleUrl,KMLUpdate,KMLVec2,KMLViewVolume,XALAddressDetails
public abstract class KMLAbstractObject extends AbstractXMLEventParser implements MessageListener
The abstract base class for most KML classes. Provides parsing and access to the id and targetId fields of KML elements.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMSG_BOX_CHANGEDstatic java.lang.StringMSG_GEOMETRY_CHANGEDstatic java.lang.StringMSG_LINK_CHANGEDstatic java.lang.StringMSG_STYLE_CHANGEDstatic java.lang.StringMSG_TIME_CHANGEDstatic java.lang.StringMSG_VIEW_CHANGED-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKMLAbstractObject()protectedKMLAbstractObject(java.lang.String namespaceURI)Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyChange(KMLAbstractObject sourceValues)java.lang.StringgetId()Returns the id of this object, if any.KMLRootgetRoot()java.lang.StringgetTargetId()Returns the target-id of this object, if any.voidonChange(Message msg)voidonMessage(Message msg)Invoked when a message is received.-
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, setField, setFields, setNamespaceURI, setParent
-
-
-
-
Field Detail
-
MSG_BOX_CHANGED
public static final java.lang.String MSG_BOX_CHANGED
- See Also:
- Constant Field Values
-
MSG_GEOMETRY_CHANGED
public static final java.lang.String MSG_GEOMETRY_CHANGED
- See Also:
- Constant Field Values
-
MSG_LINK_CHANGED
public static final java.lang.String MSG_LINK_CHANGED
- See Also:
- Constant Field Values
-
MSG_STYLE_CHANGED
public static final java.lang.String MSG_STYLE_CHANGED
- See Also:
- Constant Field Values
-
MSG_TIME_CHANGED
public static final java.lang.String MSG_TIME_CHANGED
- See Also:
- Constant Field Values
-
MSG_VIEW_CHANGED
public static final java.lang.String MSG_VIEW_CHANGED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the id of this object, if any.- Returns:
- the id of this object, or null if it's not specified in the element.
-
getTargetId
public java.lang.String getTargetId()
Returns the target-id of this object, if any.- Returns:
- the targetId of this object, or null if it's not specified in the element.
-
getRoot
public KMLRoot getRoot()
- Overrides:
getRootin classAbstractXMLEventParser
-
onMessage
public void onMessage(Message msg)
Description copied from interface:MessageListenerInvoked when a message is received.- Specified by:
onMessagein interfaceMessageListener- Parameters:
msg- The message that was received.
-
onChange
public void onChange(Message msg)
-
applyChange
public void applyChange(KMLAbstractObject sourceValues)
-
-