public class KMLNetworkLinkTreeNode extends KMLContainerTreeNode
KMLFeatureTreeNode that represents a KML network link defined by a KMLNetworkLink.
KMLNetworkLinkTreeNode automatically repopulates its hierarchy when its KMLNetworkLink is
refreshed, and notifies its listeners when this happens.
featurechildren, description, enabled, imageSource, parent, selected, text, texture, treeSelected, visibleNOT_SELECTED, PARTIALLY_SELECTED, SELECTED| Constructor and Description |
|---|
KMLNetworkLinkTreeNode(KMLNetworkLink networkLink)
Creates a new
KMLNetworkLinkTreeNode from the specified networkLink. |
| Modifier and Type | Method and Description |
|---|---|
KMLNetworkLink |
getFeature()
Indicates the KML network link this node represents.
|
protected void |
initialize()
Places the KML feature in the node's
AVKey.CONTEXT field. |
protected void |
refresh()
Called when this node's
KMLNetworkLink refreshes. |
addFeatureNodeexpandOpenContainers, fromKMLFeature, getDescription, getText, isSelected, makeFeatureDescription, mustExpandNode, setSelected, stripHtmlTagsaddChild, addChild, computeTreeSelected, getChildren, getImageSource, getParent, getPath, getTexture, hasImage, initializeTexture, isEnabled, isLeaf, isTreeSelected, isVisible, propertyChange, removeAllChildren, removeChild, setDescription, setEnabled, setImageSource, setParent, setVisibleonMessageaddPropertyChangeListener, 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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesonMessagepublic KMLNetworkLinkTreeNode(KMLNetworkLink networkLink)
KMLNetworkLinkTreeNode from the specified networkLink. The node's name is
set to the network link's name, and the node's hierarchy is populated from the network link's KML features.networkLink - the KML network link this node represents.java.lang.IllegalArgumentException - if the networkLink is null.public KMLNetworkLink getFeature()
getFeature in class KMLContainerTreeNodeprotected void initialize()
AVKey.CONTEXT field.
Additionally, this node's hierarchy is populated from the KML features in its KMLNetworkLink, and
this registers a RETRIEVAL_STATE_SUCCESSFUL property change listener on the
KMLNetworkLink.
initialize in class KMLContainerTreeNodeprotected void refresh()
KMLNetworkLink refreshes. Clears this node's hierarchy by removing its
children, then adds a new KMLFeatureTreeNode to this node for each KML feature in the
KMLNetworkLink.
If the KMLNetworkLink's top level feature is a KMLDocument, this method ignores the
document and adds its children directly to this node. Creating a node for the document adds an extra level to the
tree node that doesn't provide any meaningful grouping.
refresh in class KMLContainerTreeNode