public class SelectionManager
extends java.lang.Object
| Constructor and Description | 
|---|
| SelectionManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAndRemoveSelected(java.util.List<ModelComponent> addList,
                    java.util.List<ModelComponent> removeList) | 
| void | addFilter(SelectionFilter filter) | 
| void | addSelected(java.util.List<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() | 
| 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<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) | 
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 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<ModelComponent> addList)
public void removeSelected(java.util.List<ModelComponent> removeList)
public void addAndRemoveSelected(java.util.List<ModelComponent> addList, java.util.List<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)