ARoad0.Gui2
Class ISTree

java.lang.Object
  extended by ARoad0.Gui2.ISTree
All Implemented Interfaces:
MVC_Model, MVC_View, StaticClass

public class ISTree
extends java.lang.Object
implements MVC_Model, MVC_View, StaticClass

This utility class is responsible for creating and for updating a viewable tree for the IS structure. All the methods are static.


Field Summary
private static int INITIAL_CAPACITY
           
 
Constructor Summary
private ISTree()
          only one private constructor
 
Method Summary
static javax.swing.JTree createISnodeTree(javax.swing.JTree _tree, ImmutableName _iSname, ImmutableName _name, javax.swing.tree.DefaultMutableTreeNode _parent)
          Creates a graphical subtree of IS objects, where the last component of the object name is the user object for the tree node.
static javax.swing.tree.DefaultMutableTreeNode getParentInISTree(ImmutableName _name)
          Gets the parent TreeNode from the element name, through a searching from the root.
static javax.swing.tree.DefaultMutableTreeNode getTreeNodeInISTree(ImmutableName _name)
          Gets the TreeNode from the IS node name, through a searching from the root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_CAPACITY

private static final int INITIAL_CAPACITY
See Also:
Constant Field Values
Constructor Detail

ISTree

private ISTree()
only one private constructor

Method Detail

createISnodeTree

public static final javax.swing.JTree createISnodeTree(javax.swing.JTree _tree,
                                                       ImmutableName _iSname,
                                                       ImmutableName _name,
                                                       javax.swing.tree.DefaultMutableTreeNode _parent)
Creates a graphical subtree of IS objects, where the last component of the object name is the user object for the tree node. Called by TreeManager.createStructureTree(), ISTreeBaseListenerImpl.

Parameters:
_tree - to process
_iSname - name of the IS. Never null.
_name - of the IS node. Never null. It is _iSname to create the IS in the tree.
_parent - of _tree under which a node has to be created for _name
Returns:
updated _tree, with a subtree under the new _name node

getParentInISTree

public static final javax.swing.tree.DefaultMutableTreeNode getParentInISTree(ImmutableName _name)
Gets the parent TreeNode from the element name, through a searching from the root. _name may not have a current TreeNode in the IS structure tree. No use.

Parameters:
_name - of an NameISTree element in a registered IS
Returns:
the parent. May be null.

getTreeNodeInISTree

public static final javax.swing.tree.DefaultMutableTreeNode getTreeNodeInISTree(ImmutableName _name)
Gets the TreeNode from the IS node name, through a searching from the root. Called by ISTreeBaseListenerImpl. Calls TreeManager.getTreeNodeInNamingTree().

Parameters:
_name - of an IS element
Returns:
the node. May be null.