de.jreality.ui.viewerapp
Class Navigator
java.lang.Object
de.jreality.ui.viewerapp.Navigator
- All Implemented Interfaces:
- SelectionListener, EventListener
public class Navigator
- extends Object
- implements SelectionListener
Scene tree and inspector panel for a given scene graph.
- Author:
- msommer
Navigator
public Navigator(Viewer viewer)
- Parameters:
sceneRoot
- the scene rootselectionManager
- the underlying selection manager
Navigator
public Navigator(Viewer viewer,
Component parentComp)
- Parameters:
sceneRoot
- the scene rootselectionManager
- the underlying selection managerparentComp
- used by dialogs from the context menu (null
allowed)
selectionChanged
public void selectionChanged(SelectionEvent e)
- Specified by:
selectionChanged
in interface SelectionListener
getInspector
public InspectorPanel getInspector()
getSceneTree
public JTree getSceneTree()
getTreeSelectionModel
public TreeSelectionModel getTreeSelectionModel()
getSceneRoot
public SceneGraphComponent getSceneRoot()
getSelection
public Selection getSelection()
getComponent
public Component getComponent()
- Get the navigator as a Component.
- Returns:
- the navigator
setPropagateSelections
public void setPropagateSelections(boolean propagate)
- Propagate selections to the underlying viewer's selection manager.
setReceiveSelections
public void setReceiveSelections(boolean receive)
- Receive selections from the underlying viewer's selection manager.