|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cyvis.gui.TreeStructure
public class TreeStructure
A Class that holds the tree structure, displaying the project's packages and classes.
Constructor Summary | |
---|---|
TreeStructure()
Default constructor, sets up the tree |
Method Summary | |
---|---|
void |
emptyTree()
Enpties the tree structure |
JTree |
getTreeObj()
|
void |
oneLevelUp()
selects the current nodes' parent |
void |
selectRoot()
Selects the root node |
void |
setFocus()
Sets focus on the tree |
void |
setSelected(ClassMetric selectClassMetric,
PackageMetric packageMetric)
Selects the given class in the given package |
int |
setSelected(PackageMetric packageMetric)
Selects the given package in the tree |
void |
updateTree(List<PackageMetric> packages)
Updates the tree |
void |
zoom()
Triggers a selection change |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeStructure()
Method Detail |
---|
public JTree getTreeObj()
public void oneLevelUp()
public void selectRoot()
public void setFocus()
public void zoom()
public void updateTree(List<PackageMetric> packages)
packages
- an arraylist of packagesmetric objects.public int setSelected(PackageMetric packageMetric)
packageMetric
- the package which has to be selected.
public void setSelected(ClassMetric selectClassMetric, PackageMetric packageMetric)
selectClassMetric
- the class to selectpackageMetric
- the package metric that has this classpublic void emptyTree()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |