|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsyn3d.ui.SceneGraphModel
public abstract class SceneGraphModel
Class description ...
Field Summary | |
---|---|
protected javax.swing.event.EventListenerList |
listenerList
Listeners. |
protected static MenuResourceBundle |
resources
Resources |
protected RootNode |
rootNode
|
Constructor Summary | |
---|---|
SceneGraphModel()
|
Method Summary | |
---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
|
void |
fireTreeChanged(ActiveNode source,
java.lang.Object[] path,
int[] childIndices,
ActiveNode[] children)
Notifies all listeners that have registered interest for notification on this event type. |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
|
int |
getChildCount(java.lang.Object parent)
|
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
|
ActiveNode[] |
getPathToRoot(ActiveNode o)
Builds the parents of object up to and including the root object, where the original object is the last element in the returned array. |
ActiveNode[] |
getPathToRoot(ActiveNode o,
int depth)
Builds the parents of object up to and including the root object, where the original object is the last element in the returned array. |
java.lang.Object |
getRoot()
|
RootNode |
getRootNode()
|
boolean |
isLeaf(java.lang.Object node)
|
protected abstract boolean |
isLeaf3D(java.lang.Object o)
|
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
|
void |
setRootNode(RootNode rootNode)
|
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static MenuResourceBundle resources
protected RootNode rootNode
protected javax.swing.event.EventListenerList listenerList
Constructor Detail |
---|
public SceneGraphModel()
Method Detail |
---|
public void setRootNode(RootNode rootNode)
public RootNode getRootNode()
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public ActiveNode[] getPathToRoot(ActiveNode o)
o
- the Object to get the path for
public ActiveNode[] getPathToRoot(ActiveNode o, int depth)
o
- the Object to get the path fordepth
- an int giving the number of steps already taken towards
the root (on recursive calls), used to size the returned array
public void fireTreeChanged(ActiveNode source, java.lang.Object[] path, int[] childIndices, ActiveNode[] children)
source
- the node where the tree model has changedpath
- the path to the root nodechildIndices
- the indices of the affected elementschildren
- the affected elementsEventListenerList
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
protected abstract boolean isLeaf3D(java.lang.Object o)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |