public class KMLContainerTreeNode extends KMLFeatureTreeNode
KMLFeatureTreeNode
that represents a KML container defined by a KMLAbstractContainer
.feature
children, description, enabled, imageSource, parent, selected, text, texture, treeSelected, visible
NOT_SELECTED, PARTIALLY_SELECTED, SELECTED
Constructor and Description |
---|
KMLContainerTreeNode(KMLAbstractContainer container)
Creates a new
KMLContainerTreeNode from the specified container . |
Modifier and Type | Method and Description |
---|---|
protected void |
addFeatureNode(KMLAbstractFeature feature)
Adds the a new
KMLFeatureTreeNode created with the specified feature to this node. |
KMLAbstractContainer |
getFeature()
Indicates the KML container this node represents.
|
protected void |
initialize()
Places the KML feature in the node's
AVKey.CONTEXT field. |
protected void |
refresh()
Populate this node's hierarchy from the KML features in its
KMLAbstractContainer . |
expandOpenContainers, fromKMLFeature, getDescription, getText, isSelected, makeFeatureDescription, mustExpandNode, setSelected, stripHtmlTags
addChild, addChild, computeTreeSelected, getChildren, getImageSource, getParent, getPath, getTexture, hasImage, initializeTexture, isEnabled, isLeaf, isTreeSelected, isVisible, propertyChange, removeAllChildren, removeChild, setDescription, setEnabled, setImageSource, setParent, setVisible
onMessage
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
onMessage
public KMLContainerTreeNode(KMLAbstractContainer container)
KMLContainerTreeNode
from the specified container
. The node's name is set
to the feature's name, and the node's hierarchy is populated from the container's KML features.container
- the KML container this node represents.java.lang.IllegalArgumentException
- if the container
is null
.protected void addFeatureNode(KMLAbstractFeature feature)
KMLFeatureTreeNode
created with the specified feature
to this node.feature
- the KML feature to add.public KMLAbstractContainer getFeature()
getFeature
in class KMLFeatureTreeNode
protected void initialize()
AVKey.CONTEXT
field.initialize
in class KMLFeatureTreeNode
protected void refresh()
KMLAbstractContainer
.