diva.sketch
Class DeletionAction
java.lang.Object
javax.swing.AbstractAction
diva.sketch.DeletionAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class DeletionAction
- extends AbstractAction
This class encapsulates a deletion operation
for pen interaction.
- Version:
- $Revision: 1.4 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu)
- See Also:
- Serialized Form
DeletionAction
public DeletionAction(BasicInterpreter interp)
- Construct a deletion 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.
deleteFigures
protected void deleteFigures(Iterator figures)
- Remove all of the figures in the given iterator.
Get the sketch model from the controller, iterate over the
'figures', retrieve the symbol from each figure's user object,
and remove the symbol from the sketch model.
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.