de.jreality.ui.viewerapp
Class SelectionManagerImpl

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

public class SelectionManagerImpl
extends Object
implements SelectionManager

Manages selections within a jReality scene.

Author:
msommer, Charles Gunn

Constructor Summary
SelectionManagerImpl()
           
SelectionManagerImpl(Selection defaultSelection)
           
 
Method Summary
 void addSelection(SceneGraphPath p)
           
 void addSelectionListener(SelectionListener listener)
           
 void clearSelections()
           
 void cycleSelection()
           
 void cycleSelectionPath()
           
static void disposeForViewer(Viewer viewer)
           
 Selection getDefaultSelection()
           
 SceneGraphPath getDefaultSelectionPath()
           
 Selection getSelection()
           
 SceneGraphPath getSelectionPath()
           
 boolean isRenderSelection()
           
 void removeSelection(SceneGraphPath p)
           
 void removeSelectionListener(SelectionListener listener)
           
 void selectionChanged()
           
static SelectionManager 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

SelectionManagerImpl

public SelectionManagerImpl()

SelectionManagerImpl

public SelectionManagerImpl(Selection defaultSelection)
Method Detail

selectionManagerForViewer

public static SelectionManager selectionManagerForViewer(Viewer viewer)

disposeForViewer

public static void disposeForViewer(Viewer viewer)

getDefaultSelection

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

setDefaultSelection

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

getSelection

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

setSelection

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

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

addSelectionListener

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

removeSelectionListener

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

selectionChanged

public void selectionChanged()

isRenderSelection

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

setRenderSelection

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

getDefaultSelectionPath

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

getSelectionPath

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

setDefaultSelectionPath

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

setSelectionPath

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

cycleSelectionPath

public void cycleSelectionPath()
Specified by:
cycleSelectionPath in interface SelectionManager

addSelection

public void addSelection(SceneGraphPath p)
Specified by:
addSelection in interface SelectionManager

removeSelection

public void removeSelection(SceneGraphPath p)
Specified by:
removeSelection in interface SelectionManager

clearSelections

public void clearSelections()
Specified by:
clearSelections in interface SelectionManager

cycleSelection

public void cycleSelection()
Specified by:
cycleSelection in interface SelectionManager