de.jreality.ui.treeview
Class SceneTreeModel
java.lang.Object
de.jreality.ui.treeview.AbstractTreeModel
de.jreality.ui.treeview.SceneTreeModel
- All Implemented Interfaces:
- TreeModel
public class SceneTreeModel
- extends AbstractTreeModel
SceneTreeModel
public SceneTreeModel(SceneGraphComponent root)
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)