de.jreality.ui.viewerapp
Class Navigator
java.lang.Object
de.jreality.ui.viewerapp.Navigator
- All Implemented Interfaces:
- SelectionListener, java.util.EventListener
public class Navigator
- extends java.lang.Object
- implements SelectionListener
Scene tree and inspector panel for a given scene graph.
- Author:
- msommer
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Navigator
public Navigator(Viewer viewer)
- Parameters:
sceneRoot
- the scene rootselectionManager
- the underlying selection manager
Navigator
public Navigator(Viewer viewer,
java.awt.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 javax.swing.JTree getSceneTree()
getTreeSelectionModel
public javax.swing.tree.TreeSelectionModel getTreeSelectionModel()
getSceneRoot
public SceneGraphComponent getSceneRoot()
getSelection
public Selection getSelection()
getComponent
public java.awt.Component getComponent()
- Get the navigator as a Component.
- Returns:
- the navigator
setReceiveSelections
public void setReceiveSelections(boolean receive)
- Receive selections from the underlying viewer's selection manager.
isReceiveSelections
public boolean isReceiveSelections()
isPropagateSelections
public boolean isPropagateSelections()
setPropagateSelections
public void setPropagateSelections(boolean propagate)
- Propagate selections to the underlying viewer's selection manager.