de.jreality.ui.treeview
Class SceneTreeModel

java.lang.Object
  extended by de.jreality.ui.treeview.AbstractTreeModel
      extended by de.jreality.ui.treeview.SceneTreeModel
All Implemented Interfaces:
TreeModel

public class SceneTreeModel
extends AbstractTreeModel


Nested Class Summary
static class SceneTreeModel.TreeTool
           
 
Constructor Summary
SceneTreeModel(SceneGraphComponent root)
           
 
Method Summary
 SceneTreeNode[] convertSceneGraphPath(SceneGraphPath selection)
           
 SceneTreeNode[] convertSelection(Selection selection)
           
 void dispose()
           
 UpToDateSceneProxyBuilder getBuilder()
           
 Object getChild(Object parent, int index)
          Must be implemented by subclasses, return the child of parent at index.
 int getChildCount(Object parent)
          Must be implemented by subclasses, return number of children.
 Object getParent(Object o)
          Must be implemented by subclasses, return the parent of a node.
 
Methods inherited from class de.jreality.ui.treeview.AbstractTreeModel
addTreeModelListener, getIndexOfChild, getPathTo, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneTreeModel

public SceneTreeModel(SceneGraphComponent root)
Method Detail

dispose

public void dispose()

getBuilder

public UpToDateSceneProxyBuilder getBuilder()

getChild

public Object getChild(Object parent,
                       int index)
Description copied from class: AbstractTreeModel
Must be implemented by subclasses, return the child of parent at index.

Specified by:
getChild in interface TreeModel
Specified by:
getChild in class AbstractTreeModel
See Also:
TreeModel.getChild(Object,int)

getChildCount

public int getChildCount(Object parent)
Description copied from class: AbstractTreeModel
Must be implemented by subclasses, return number of children.

Specified by:
getChildCount in interface TreeModel
Specified by:
getChildCount in class AbstractTreeModel
See Also:
TreeModel.getChildCount(Object)

getParent

public Object getParent(Object o)
Description copied from class: AbstractTreeModel
Must be implemented by subclasses, return the parent of a node. This is only used by AbstractTreeModel.getPathTo(Object) and therefore does not require a valid implementation if the getPathTo() method is overridden with an implementation that does not call it's super impl.

Specified by:
getParent in class AbstractTreeModel

convertSceneGraphPath

public SceneTreeNode[] convertSceneGraphPath(SceneGraphPath selection)

convertSelection

public SceneTreeNode[] convertSelection(Selection selection)