de.jreality.ui.viewerapp
Class Navigator

java.lang.Object
  extended by 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

Nested Class Summary
static class Navigator.SelectionEvent
           
static class Navigator.SelectionListener
           
 
Constructor Summary
Navigator(Viewer viewer)
           
Navigator(Viewer viewer, Component parentComp)
           
 
Method Summary
 Component getComponent()
          Get the navigator as a Component.
 InspectorPanel getInspector()
           
 SceneGraphComponent getSceneRoot()
           
 JTree getSceneTree()
           
 Selection getSelection()
           
 TreeSelectionModel getTreeSelectionModel()
           
 void selectionChanged(SelectionEvent e)
           
 void setPropagateSelections(boolean propagate)
          Propagate selections to the underlying viewer's selection manager.
 void setReceiveSelections(boolean receive)
          Receive selections from the underlying viewer's selection manager.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Navigator

public Navigator(Viewer viewer)
Parameters:
sceneRoot - the scene root
selectionManager - the underlying selection manager

Navigator

public Navigator(Viewer viewer,
                 Component parentComp)
Parameters:
sceneRoot - the scene root
selectionManager - the underlying selection manager
parentComp - used by dialogs from the context menu (null allowed)
Method Detail

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.