diva.sketch
Class LassoSelectionAction
java.lang.Object
javax.swing.AbstractAction
diva.sketch.LassoSelectionAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class LassoSelectionAction
- extends AbstractAction
This class encapsulates lasso-style selection operation
for pen interaction.
- Version:
- $Revision: 1.3 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu)
- See Also:
- Serialized Form
LassoSelectionAction
public LassoSelectionAction(BasicInterpreter interp)
- Construct a lasso selection operator that
executes within the given interpreter.
actionPerformed
public void actionPerformed(ActionEvent evt)
- Treat the current stroke as a lasso selection if it is
mostly closed.
toggleSelection
protected void toggleSelection(List hitFigures)
- Toggle the selection state of the given figures. Implemented
as a template method so that subclasses can override the behavior.
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.