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