de.jreality.ui.viewerapp
Class SelectionManager

java.lang.Object
  extended by de.jreality.ui.viewerapp.SelectionManager
All Implemented Interfaces:
SelectionManagerInterface

public class SelectionManager
extends Object
implements SelectionManagerInterface

Manages selections within a jReality scene.

Author:
msommer

Constructor Summary
SelectionManager()
           
SelectionManager(Selection defaultSelection)
           
 
Method Summary
 void addSelectionListener(SelectionListener listener)
           
 Selection getDefaultSelection()
           
 SceneGraphPath getDefaultSelectionPath()
           
 Selection getSelection()
           
 SceneGraphPath getSelectionPath()
           
 boolean isRenderSelection()
           
 void removeSelectionListener(SelectionListener listener)
           
 void selectionChanged()
           
static SelectionManagerInterface selectionManagerForViewer(Viewer viewer)
           
 void setDefaultSelection(Selection defaultSelection)
           
 void setDefaultSelectionPath(SceneGraphPath defaultSelection)
           
 void setRenderSelection(boolean renderSelection)
           
 void setSelection(Selection selection)
          Set the current selection.
 void setSelectionPath(SceneGraphPath selection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionManager

public SelectionManager()

SelectionManager

public SelectionManager(Selection defaultSelection)
Method Detail

selectionManagerForViewer

public static SelectionManagerInterface selectionManagerForViewer(Viewer viewer)

getDefaultSelection

public Selection getDefaultSelection()
Specified by:
getDefaultSelection in interface SelectionManagerInterface

setDefaultSelection

public void setDefaultSelection(Selection defaultSelection)
Specified by:
setDefaultSelection in interface SelectionManagerInterface

getSelection

public Selection getSelection()
Specified by:
getSelection in interface SelectionManagerInterface

setSelection

public void setSelection(Selection selection)
Set the current selection.

Specified by:
setSelection in interface SelectionManagerInterface
Parameters:
selection - the current Selection object

addSelectionListener

public void addSelectionListener(SelectionListener listener)
Specified by:
addSelectionListener in interface SelectionManagerInterface

removeSelectionListener

public void removeSelectionListener(SelectionListener listener)
Specified by:
removeSelectionListener in interface SelectionManagerInterface

selectionChanged

public void selectionChanged()

isRenderSelection

public boolean isRenderSelection()
Specified by:
isRenderSelection in interface SelectionManagerInterface

setRenderSelection

public void setRenderSelection(boolean renderSelection)
Specified by:
setRenderSelection in interface SelectionManagerInterface

getDefaultSelectionPath

public SceneGraphPath getDefaultSelectionPath()
Specified by:
getDefaultSelectionPath in interface SelectionManagerInterface

getSelectionPath

public SceneGraphPath getSelectionPath()
Specified by:
getSelectionPath in interface SelectionManagerInterface

setDefaultSelectionPath

public void setDefaultSelectionPath(SceneGraphPath defaultSelection)
Specified by:
setDefaultSelectionPath in interface SelectionManagerInterface

setSelectionPath

public void setSelectionPath(SceneGraphPath selection)
Specified by:
setSelectionPath in interface SelectionManagerInterface