Class KMLContainerTreeNode
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.util.tree.BasicTreeNode
-
- gov.nasa.worldwind.util.layertree.KMLFeatureTreeNode
-
- gov.nasa.worldwind.util.layertree.KMLContainerTreeNode
-
- All Implemented Interfaces:
AVList
,MessageListener
,TreeNode
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
- Direct Known Subclasses:
KMLNetworkLinkTreeNode
public class KMLContainerTreeNode extends KMLFeatureTreeNode
AKMLFeatureTreeNode
that represents a KML container defined by a
.KMLAbstractContainer
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.util.layertree.KMLFeatureTreeNode
feature
-
Fields inherited from class gov.nasa.worldwind.util.tree.BasicTreeNode
children, description, enabled, imageSource, parent, selected, text, texture, treeSelected, visible
-
Fields inherited from interface gov.nasa.worldwind.util.tree.TreeNode
NOT_SELECTED, PARTIALLY_SELECTED, SELECTED
-
-
Constructor Summary
Constructors Constructor Description KMLContainerTreeNode(KMLAbstractContainer container)
Creates a newKMLContainerTreeNode
from the specifiedcontainer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFeatureNode(KMLAbstractFeature feature)
Adds the a newKMLFeatureTreeNode
created with the specifiedfeature
to this node.KMLAbstractContainer
getFeature()
Indicates the KML container this node represents.protected void
initialize()
Places the KML feature in the node'sAVKey.CONTEXT
field.protected void
refresh()
Populate this node's hierarchy from the KML features in itsKMLAbstractContainer
.-
Methods inherited from class gov.nasa.worldwind.util.layertree.KMLFeatureTreeNode
expandOpenContainers, fromKMLFeature, getDescription, getText, isSelected, makeFeatureDescription, mustExpandNode, setSelected, stripHtmlTags
-
Methods inherited from class gov.nasa.worldwind.util.tree.BasicTreeNode
addChild, addChild, computeTreeSelected, getChildren, getImageSource, getParent, getPath, getTexture, hasImage, initializeTexture, isEnabled, isLeaf, isTreeSelected, isVisible, propertyChange, removeAllChildren, removeChild, setDescription, setEnabled, setImageSource, setParent, setVisible
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Constructor Detail
-
KMLContainerTreeNode
public KMLContainerTreeNode(KMLAbstractContainer container)
Creates a newKMLContainerTreeNode
from the specifiedcontainer
. The node's name is set to the feature's name, and the node's hierarchy is populated from the container's KML features.- Parameters:
container
- the KML container this node represents.- Throws:
java.lang.IllegalArgumentException
- if thecontainer
isnull
.
-
-
Method Detail
-
getFeature
public KMLAbstractContainer getFeature()
Indicates the KML container this node represents.- Overrides:
getFeature
in classKMLFeatureTreeNode
- Returns:
- this node's KML container.
-
initialize
protected void initialize()
Places the KML feature in the node'sAVKey.CONTEXT
field.- Overrides:
initialize
in classKMLFeatureTreeNode
-
refresh
protected void refresh()
Populate this node's hierarchy from the KML features in itsKMLAbstractContainer
.
-
addFeatureNode
protected void addFeatureNode(KMLAbstractFeature feature)
Adds the a newKMLFeatureTreeNode
created with the specifiedfeature
to this node.- Parameters:
feature
- the KML feature to add.
-
-