程序包 | 说明 |
---|---|
com.sh.javax.tree |
限定符和类型 | 字段和说明 |
---|---|
GraphTreeNode |
GraphTreeLayout.root
根节点
|
限定符和类型 | 方法和说明 |
---|---|
GraphTreeNode |
GraphTreeNode.getFirstLeaf()
Finds and returns the first leaf that is a descendant of this node --
either this node or its first child's first leaf.
|
GraphTreeNode |
GraphTreeNode.getLastLeaf()
Finds and returns the last leaf that is a descendant of this node --
either this node or its last child's last leaf.
|
GraphTreeNode |
GraphTreeNode.getNextLeaf()
Returns the leaf after this node or null if this node is the
last leaf in the tree.
|
GraphTreeNode |
GraphTreeNode.getNextNode()
Returns the node that follows this node in a preorder traversal of this
node's tree.
|
GraphTreeNode |
GraphTreeNode.getNextSibling()
Returns the next sibling of this node in the parent's children array.
|
GraphTreeNode |
GraphTreeNode.getPreviousLeaf()
Returns the leaf before this node or null if this node is the
first leaf in the tree.
|
GraphTreeNode |
GraphTreeNode.getPreviousNode()
Returns the node that precedes this node in a preorder traversal of
this node's tree.
|
GraphTreeNode |
GraphTreeNode.getPreviousSibling()
Returns the previous sibling of this node in the parent's children
array.
|
GraphTreeNode |
GraphTree.getRoot() |
限定符和类型 | 方法和说明 |
---|---|
javax.swing.tree.TreeNode |
GraphTreeNode.getSharedAncestor(GraphTreeNode aNode)
Returns the nearest common ancestor to this node and
aNode . |
boolean |
GraphTreeNode.isNodeDescendant(GraphTreeNode anotherNode)
Returns true if
anotherNode is a descendant of this node
-- if it is this node, one of this node's children, or a descendant of
one of this node's children. |
boolean |
GraphTreeNode.isNodeRelated(GraphTreeNode aNode)
Returns true if and only if
aNode is in the same tree
as this node. |
void |
GraphTree.setRoot(GraphTreeNode node) |
构造器和说明 |
---|
GraphTree(GraphTreeNode root)
构造
|