de.jreality.ui.viewerapp
Class SelectionManagerImpl
java.lang.Object
de.jreality.ui.viewerapp.SelectionManagerImpl
- All Implemented Interfaces:
- SelectionManager
public class SelectionManagerImpl
- extends java.lang.Object
- implements SelectionManager
Manages selections within a jReality scene.
- Author:
- msommer, Charles Gunn
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectionManagerImpl
public SelectionManagerImpl()
SelectionManagerImpl
public SelectionManagerImpl(Selection defaultSelection)
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