public class SelectionManagerImpl extends Object implements SelectionManager
Constructor and Description |
---|
SelectionManagerImpl() |
SelectionManagerImpl(Selection defaultSelection) |
Modifier and Type | Method and Description |
---|---|
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) |
public SelectionManagerImpl()
public SelectionManagerImpl(Selection defaultSelection)
public static SelectionManager selectionManagerForViewer(Viewer viewer)
public static void disposeForViewer(Viewer viewer)
public Selection getDefaultSelection()
getDefaultSelection
in interface SelectionManager
public void setDefaultSelection(Selection defaultSelection)
setDefaultSelection
in interface SelectionManager
public Selection getSelection()
getSelection
in interface SelectionManager
public void setSelection(Selection selection)
setSelection
in interface SelectionManager
selection
- the current Selection objectpublic void addSelectionListener(SelectionListener listener)
addSelectionListener
in interface SelectionManager
public void removeSelectionListener(SelectionListener listener)
removeSelectionListener
in interface SelectionManager
public void selectionChanged()
public boolean isRenderSelection()
isRenderSelection
in interface SelectionManager
public void setRenderSelection(boolean renderSelection)
setRenderSelection
in interface SelectionManager
public SceneGraphPath getDefaultSelectionPath()
getDefaultSelectionPath
in interface SelectionManager
public SceneGraphPath getSelectionPath()
getSelectionPath
in interface SelectionManager
public void setDefaultSelectionPath(SceneGraphPath defaultSelection)
setDefaultSelectionPath
in interface SelectionManager
public void setSelectionPath(SceneGraphPath selection)
setSelectionPath
in interface SelectionManager
public void cycleSelectionPath()
cycleSelectionPath
in interface SelectionManager
public void addSelection(SceneGraphPath p)
addSelection
in interface SelectionManager
public void removeSelection(SceneGraphPath p)
removeSelection
in interface SelectionManager
public void clearSelections()
clearSelections
in interface SelectionManager
public void cycleSelection()
cycleSelection
in interface SelectionManager