|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.io.root.util.RootDirectoryTreeModel
An adaptor that converts a root TDirectory into a TreeModel, allowing any directory structure to be dislayed by a Swing JTree.
This model will also drill down into TTree's, showing the branch and leaf structure inside.
Constructor Summary | |
RootDirectoryTreeModel(TDirectory topDir)
Create the tree model |
Method Summary | |
void |
addTreeModelListener(TreeModelListener p1)
|
Object |
getChild(Object parent,
int index)
|
int |
getChildCount(Object parent)
|
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
|
protected void |
handleException(IOException x)
Handle IOExceptions when reading the root file. |
protected void |
handleException(RootClassNotFound x)
|
boolean |
isLeaf(Object parent)
|
void |
removeTreeModelListener(TreeModelListener p1)
|
void |
valueForPathChanged(TreePath p1,
Object p2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RootDirectoryTreeModel(TDirectory topDir)
topDir
- The TDirectory that is to appear as the "root" of the treeMethod Detail |
public Object getChild(Object parent, int index)
getChild
in interface TreeModel
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public boolean isLeaf(Object parent)
isLeaf
in interface TreeModel
public Object getRoot()
getRoot
in interface TreeModel
public void addTreeModelListener(TreeModelListener p1)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener p1)
removeTreeModelListener
in interface TreeModel
public void valueForPathChanged(TreePath p1, Object p2)
valueForPathChanged
in interface TreeModel
protected void handleException(IOException x)
protected void handleException(RootClassNotFound x)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |