|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sdmetrics.app.TreeView
Class to generate a set of trees of ElementTreeNode that can be used
to create a Swing JTree.
Each tree always shows the elements of one metamodel element type. The class maintains a bidirectional mapping between the nodes in the tree and the indices of the corresponding model elements in the element pool.
| Constructor Summary | |
TreeView(ElementPool pool)
|
|
| Method Summary | |
ElementTreeNode |
getNodeForIndex(int tree,
int index)
Retrieve a node for a specific model element. |
int |
getNumberOfTypes()
Get the number of available trees (model element types). |
ElementTreeNode |
getRoot(int tree)
Get the root node of a specified tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeView(ElementPool pool)
pool - Element pool with the model elements for which to create the trees.| Method Detail |
public int getNumberOfTypes()
public ElementTreeNode getNodeForIndex(int tree,
int index)
tree - Index of the tree. Valid indices run from 0 to getNumberOfTypes()-1.index - Index of the model element type in the meta model.
public ElementTreeNode getRoot(int tree)
tree - Index of the tree. Valid indices run from 0 to getNumberOfTypes()-1.
|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||