Package | Description |
---|---|
gov.nasa.worldwind.util.layertree |
Displays a list of layers using
BasicTree . |
gov.nasa.worldwind.util.tree |
A tree control drawn in the WorldWindow.
|
gov.nasa.worldwindx.examples.kml |
Examples of importing and exporting files in the Keyhole Markup Language (KML).
|
Modifier and Type | Class and Description |
---|---|
class |
KMLContainerTreeNode
A
KMLFeatureTreeNode that represents a KML container defined by a . |
class |
KMLFeatureTreeNode
A
TreeNode that represents a KML feature defined by a . |
class |
KMLLayerTreeNode
A
LayerTreeNode that represents a KML feature hierarchy defined by a . |
class |
KMLNetworkLinkTreeNode
A
KMLFeatureTreeNode that represents a KML network link defined by a . |
class |
LayerTreeNode
A
TreeNode that represents a . |
Modifier and Type | Method and Description |
---|---|
protected TreeNode |
LayerTreeModel.createRootNode()
Returns a new root
TreeNode for this tree model. |
Modifier and Type | Class and Description |
---|---|
class |
BasicTreeNode
Default implementation of a
TreeNode . |
Modifier and Type | Field and Description |
---|---|
protected TreeNode |
BasicTreeLayout.NodeLayout.node
Node that this layout applies to.
|
protected TreeNode |
BasicTreeNode.parent |
protected TreeNode |
BasicTreeModel.root
The root node.
|
protected TreeNode |
BasicTreeLayout.scrollToNode
This field is set by
BasicTreeLayout.makeVisible(TreePath) , and read by BasicTreeLayout.scrollToNode(gov.nasa.worldwind.render.DrawContext)
during rendering. |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<TreeNode> |
BasicTreeNode.children |
protected BoundedHashMap<TreeNode,BasicTreeLayout.NodeLayout> |
BasicTreeLayout.layoutCache
Cache of computed node layout data.
|
Modifier and Type | Method and Description |
---|---|
TreeNode |
Tree.getNode(TreePath path)
Locate a node in the tree.
|
TreeNode |
BasicTree.getNode(TreePath path)
Locate a node in the tree.
|
TreeNode |
BasicTreeNode.getParent()
Get the node's parent.
|
TreeNode |
TreeNode.getParent()
Get the node's parent.
|
TreeNode |
TreeModel.getRoot()
Get the root node of the tree.
|
TreeNode |
BasicTreeModel.getRoot()
Get the root node of the tree.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<TreeNode> |
BasicTreeNode.getChildren()
Get the children of this node.
|
java.lang.Iterable<TreeNode> |
TreeNode.getChildren()
Get the children of this node.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicTreeNode.addChild(int index,
TreeNode child)
Add a child node at a specified position in the list of children.
|
void |
TreeNode.addChild(int index,
TreeNode child)
Add a child node at a specified position in the list of children.
|
void |
BasicTreeNode.addChild(TreeNode child)
Add a child node.
|
void |
TreeNode.addChild(TreeNode child)
Add a child node.
|
protected void |
BasicTreeLayout.computeSize(Tree tree,
TreeNode root,
DrawContext dc,
java.awt.Dimension frameSize,
java.awt.Dimension size,
int x,
int level)
Compute the size of a tree.
|
protected void |
BasicTreeLayout.computeTreeLayout(TreeNode root,
DrawContext dc,
java.awt.Dimension frameSize,
java.awt.Point location,
int level,
java.util.List<BasicTreeLayout.NodeLayout> nodes)
Determine the tree layout.
|
protected java.lang.String |
BasicTreeLayout.computeWrappedText(DrawContext dc,
TreeNode node,
java.awt.Font font,
int width)
Get the wrapped description text for a node.
|
protected HotSpot |
BasicTreeLayout.createSelectControl(TreeNode node)
Create a pickable object to represent selection control in the tree.
|
protected HotSpot |
BasicTreeLayout.createTogglePathControl(Tree tree,
TreeNode node)
Create a pickable object to represent a toggle control in the tree.
|
protected java.awt.Rectangle |
BasicTreeLayout.findNodeBounds(TreeNode needle,
TreeNode haystack,
DrawContext dc,
java.awt.Dimension frameSize,
java.awt.Point location,
int level)
Find the bounds of a node in the tree.
|
protected java.lang.String |
BasicTreeLayout.getDescriptionText(TreeNode node)
Get the description text for a node.
|
java.awt.Dimension |
BasicTreeLayout.getNodeSize(DrawContext dc,
java.awt.Dimension frameSize,
int x,
TreeNode node,
TreeAttributes attributes)
Compute the size of a node.
|
protected java.lang.String |
BasicTreeLayout.getText(TreeNode node)
Get the text for a node.
|
boolean |
Tree.isNodeExpanded(TreeNode node)
Is a node expanded?
|
boolean |
BasicTree.isNodeExpanded(TreeNode node)
Is a node expanded?
|
protected boolean |
BasicTreeLayout.mustDisplayNode(TreeNode node,
int level)
Determine if a node needs to be displayed.
|
void |
BasicTreeNode.removeChild(TreeNode child)
Remove a child node.
|
void |
TreeNode.removeChild(TreeNode child)
Remove a child node.
|
protected void |
BasicTreeLayout.setDescendantsSelected(TreeNode node,
boolean selected)
Sets the selection state of the branch beneath the specified
node . |
void |
BasicTreeNode.setParent(TreeNode node)
Set the parent node.
|
void |
TreeNode.setParent(TreeNode node)
Set the parent node.
|
void |
BasicTreeModel.setRoot(TreeNode root)
Set the root node.
|
protected void |
BasicTreeLayout.toggleNodeSelection(TreeNode node)
Toggles the selection state of the specified
node . |
Constructor and Description |
---|
BasicTreeModel(TreeNode root)
Create a tree model with a root node.
|
NodeLayout(TreeNode node)
Create a new node layout.
|
Modifier and Type | Field and Description |
---|---|
protected TreeNode |
KMLApplicationController.highlightedNode
Indicates the
TreeNode currently under the cursor. |