Goovi
Class AmosTree
Goovi.AmosNode
|
+--Goovi.AmosTree
- public class AmosTree
- extends AmosNode
Class to represent a tree of AmosNodes
Constructor Summary |
AmosTree()
Creates a AmosTree object. |
AmosTree
public AmosTree()
- Creates a AmosTree object.
getRoot
public AmosNode getRoot()
getRootName
public java.lang.String getRootName()
findNode
public AmosNode findNode(java.lang.String nodeName)
- Finds a named AmosNode in the tree.
- Parameters:
nodeName
- The name label of the node to be find.
findNode
public AmosNode findNode(java.lang.String nodeName,
AmosNode currentNode)
- Finds a named AmosNode in the tree.
- Parameters:
nodeName
- The name label of the node to be find.currentNode
- The node where to start the recursive search.
addChild
public void addChild(AmosNode nodeToAdd)
- Adds a node directly to the root.
- Parameters:
nodeToAdd
- The node to add.
addChild
public void addChild(AmosNode parent,
AmosNode nodeToAdd)
- Adds a node to a specified node and opens the parent and makes
the parent a folder if necessary.
- Parameters:
parent
- The parent node.nodeToAdd
- The node to add.
nodeChanged
public void nodeChanged(Goovi.JCOutlinerNode n)
deleteNodes
public void deleteNodes(Goovi.JCOutlinerNode[] ar)
makeAllNodesVisibleNamed
public void makeAllNodesVisibleNamed(java.lang.String name)
makeAllNodesVisibleNamed
public void makeAllNodesVisibleNamed(java.lang.String name,
AmosNode currentNode)
makeNodeVisible
public void makeNodeVisible(AmosNode theNode)