public class SelectionManager
extends java.lang.Object
Constructor and Description |
---|
SelectionManager() |
Modifier and Type | Method and Description |
---|---|
void |
addAndRemoveSelected(java.util.List<? extends ModelComponent> addList,
java.util.List<? extends ModelComponent> removeList) |
void |
addFilter(SelectionFilter filter) |
void |
addSelected(java.util.List<? extends ModelComponent> addList) |
boolean |
addSelected(ModelComponent c) |
void |
addSelectionListener(SelectionListener l) |
void |
clearSelections() |
void |
displayPopup(java.awt.event.MouseEvent evt) |
void |
filterSelections(SelectionFilter filter) |
java.util.LinkedList<ModelComponent> |
getCopyExpandedSelection()
Returns a list of the currently selected components, expanded to include
components which also referenced by the current selection.
|
java.util.LinkedList<ModelComponent> |
getCurrentSelection()
Returns a list of the currently selected components.
|
SelectionFilter[] |
getFilters() |
ModelComponent |
getLastSelected() |
int |
getMaximumSelections()
Returns the maximum number of components that may be concurrently
selected.
|
int |
getNumSelected() |
boolean |
getViewerMultiSelection()
Queries whether viewer multiple selection has been set.
|
artisynth.core.gui.selectionManager.SelectionManager.MyViewerSelectionFilter |
getViewerSelectionFilter() |
artisynth.core.gui.selectionManager.SelectionManager.ViewerSelectionHandler |
getViewerSelectionHandler() |
boolean |
isPopupMenuEnabled() |
boolean |
removeFilter(SelectionFilter filter) |
void |
removeSelected(java.util.List<? extends ModelComponent> removeList) |
boolean |
removeSelected(ModelComponent c) |
boolean |
removeSelectionListener(SelectionListener l) |
void |
setMaximumSelections(int max)
Sets the maximum number of components that may be concurrently selected.
|
void |
setNavPanel(NavigationPanel navpanel) |
void |
setPopupMenuEnabled(boolean enable) |
void |
setViewerMultiSelection(boolean enable)
Forces regular selection in the viewer to perform multiple selection.
|
public void setNavPanel(NavigationPanel navpanel)
public artisynth.core.gui.selectionManager.SelectionManager.ViewerSelectionHandler getViewerSelectionHandler()
public artisynth.core.gui.selectionManager.SelectionManager.MyViewerSelectionFilter getViewerSelectionFilter()
public void addFilter(SelectionFilter filter)
public boolean removeFilter(SelectionFilter filter)
public SelectionFilter[] getFilters()
public void filterSelections(SelectionFilter filter)
public void setViewerMultiSelection(boolean enable)
enable
- if true
, sets viewer multiple selectionpublic boolean getViewerMultiSelection()
public void setMaximumSelections(int max)
max
- maximum number of concurrently selectable componentspublic int getMaximumSelections()
public java.util.LinkedList<ModelComponent> getCurrentSelection()
public java.util.LinkedList<ModelComponent> getCopyExpandedSelection()
public ModelComponent getLastSelected()
public int getNumSelected()
public void addSelected(java.util.List<? extends ModelComponent> addList)
public void removeSelected(java.util.List<? extends ModelComponent> removeList)
public void addAndRemoveSelected(java.util.List<? extends ModelComponent> addList, java.util.List<? extends ModelComponent> removeList)
public boolean addSelected(ModelComponent c)
public boolean removeSelected(ModelComponent c)
public void clearSelections()
public void addSelectionListener(SelectionListener l)
public boolean removeSelectionListener(SelectionListener l)
public boolean isPopupMenuEnabled()
public void setPopupMenuEnabled(boolean enable)
public void displayPopup(java.awt.event.MouseEvent evt)