|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.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 tree| Method Detail |
public Object getChild(Object parent,
int index)
getChild in interface TreeModelpublic int getChildCount(Object parent)
getChildCount in interface TreeModel
public int getIndexOfChild(Object parent,
Object child)
getIndexOfChild in interface TreeModelpublic boolean isLeaf(Object parent)
isLeaf in interface TreeModelpublic Object getRoot()
getRoot in interface TreeModelpublic void addTreeModelListener(TreeModelListener p1)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener p1)
removeTreeModelListener in interface TreeModel
public void valueForPathChanged(TreePath p1,
Object p2)
valueForPathChanged in interface TreeModelprotected 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 | |||||||||