|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.umd.cs.jazz.util.ZSceneGraphTreeModel
ZSceneGraphTreeModel implements a TreeModel used by ZSceneGraphTreeView to implement a jazz sceneGraph browser.
ZSceneGraphTreeView| Constructor Summary | |
ZSceneGraphTreeModel(ZRoot root)
|
|
| Method Summary | |
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Returns the child of parent at index index in the parent's child array. |
int |
getChildCount(java.lang.Object parent)
Returns the number of children of parent. |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Returns the index of child in parent. |
ZSceneGraphObject |
getJazzObject(java.lang.Object object)
Returns the object as a jazz ZSceneGraphObject. |
java.lang.Object |
getRoot()
Returns the root of the tree. |
boolean |
isLeaf(java.lang.Object obj)
Returns true if obj is a leaf. |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). |
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
Messaged when the user has altered the value for the item identified by path to newValue. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ZSceneGraphTreeModel(ZRoot root)
| Method Detail |
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
public java.lang.Object getChild(java.lang.Object parent,
int index)
public int getChildCount(java.lang.Object parent)
public int getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
public java.lang.Object getRoot()
public ZSceneGraphObject getJazzObject(java.lang.Object object)
object - the object.public boolean isLeaf(java.lang.Object obj)
public void valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||