de.jreality.ui.viewerapp
Class SelectionManager
java.lang.Object
de.jreality.ui.viewerapp.SelectionManager
- All Implemented Interfaces:
- SelectionManagerInterface
public class SelectionManager
- extends Object
- implements SelectionManagerInterface
Manages selections within a jReality scene.
- Author:
- msommer
SelectionManager
public SelectionManager()
SelectionManager
public SelectionManager(Selection defaultSelection)
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