|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.afecs.ui.rcgui.factory.ATreeFactory
public class ATreeFactory
JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c),Oct 20, 2009
Constructor Summary | |
---|---|
ATreeFactory(java.lang.String rootnodename)
|
Method Summary | |
---|---|
void |
addGeneticNode(java.lang.String grandpa,
java.lang.String pa,
java.lang.String name)
Adds the component node to the typenode of the specific root (runtype, session, etc) |
void |
addNodeToParen(java.lang.String parent,
java.lang.String child)
Adds the new node to the parent node. |
void |
addNodeToTheTree(java.lang.String rootnode,
java.lang.String name)
Adds the node to the root node |
void |
addTreeNode(javax.swing.tree.TreePath path,
java.lang.String name)
Adds the node to the path |
javax.swing.JTree |
createTree(java.lang.String name,
javax.swing.event.TreeSelectionListener tl)
|
void |
deleteTheNode(java.lang.String nn)
|
void |
drawTree(java.util.HashMap map)
|
javax.swing.tree.TreePath |
findNode(java.lang.String nodename)
Finds the node starting from the root |
javax.swing.tree.TreePath |
findTreeNodeByName(java.util.ArrayList<java.lang.String> al)
Finds the path in tree as specified by the arraylist of names. |
javax.swing.tree.TreePath |
getExactMatch(java.lang.String name,
int startingRow,
javax.swing.text.Position.Bias bias)
|
javax.swing.JTree |
getTree()
|
void |
removeNode(javax.swing.tree.DefaultMutableTreeNode selNode)
This method removes the passed tree node from the tree and selects appropiate node |
void |
removeNodeFromTheTree(java.lang.String nodename)
Removes the node from the dalog browser tree. |
void |
removeTreeNode(java.lang.String name)
removes the node specified by its name |
void |
removeTreeNodeStartingWith(java.lang.String prefix)
removes the node specified by its name |
javax.swing.tree.DefaultMutableTreeNode |
searchNode(java.lang.String nodeStr)
This method takes the node string and traverses the tree till it finds the node matching the string. |
void |
updateTree(java.lang.String[] addr)
Updates the tree based on the String array composed of agent expid, session, runtype, type, name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ATreeFactory(java.lang.String rootnodename)
Method Detail |
---|
public javax.swing.JTree createTree(java.lang.String name, javax.swing.event.TreeSelectionListener tl)
public javax.swing.JTree getTree()
public void addTreeNode(javax.swing.tree.TreePath path, java.lang.String name)
path
- TreePath objectname
- the name of the branchpublic void removeTreeNodeStartingWith(java.lang.String prefix)
prefix
- of the name of the nodepublic void removeTreeNode(java.lang.String name)
name
- of the nodepublic javax.swing.tree.TreePath getExactMatch(java.lang.String name, int startingRow, javax.swing.text.Position.Bias bias)
public javax.swing.tree.TreePath findTreeNodeByName(java.util.ArrayList<java.lang.String> al)
al
- array list of the names
public void drawTree(java.util.HashMap map)
public void updateTree(java.lang.String[] addr)
addr
- arr of Stringspublic void addNodeToParen(java.lang.String parent, java.lang.String child)
parent
- The name of the parent nodechild
- The name of the child nodepublic javax.swing.tree.TreePath findNode(java.lang.String nodename)
nodename
- The name of the node
public void removeNodeFromTheTree(java.lang.String nodename)
nodename
- The name of the nodepublic void deleteTheNode(java.lang.String nn)
nn
- node name to be remvedpublic javax.swing.tree.DefaultMutableTreeNode searchNode(java.lang.String nodeStr)
nodeStr
- node string to search for
public void removeNode(javax.swing.tree.DefaultMutableTreeNode selNode)
selNode
- node to be removedpublic void addNodeToTheTree(java.lang.String rootnode, java.lang.String name)
rootnode
- the name of the root nodename
- the name of the branchpublic void addGeneticNode(java.lang.String grandpa, java.lang.String pa, java.lang.String name)
grandpa
- the name of the parent of the parent nodepa
- the name of the parent nodename
- the name of the component node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |