public class DeletionAction extends AbstractAction
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
DeletionAction(BasicInterpreter interp)
Construct a deletion operator that
executes within the given interpreter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt)
Treat the current stroke as a lasso selection if it is
mostly closed.
|
protected void |
deleteFigures(Iterator figures)
Remove all of the figures in the given iterator.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic DeletionAction(BasicInterpreter interp)
public void actionPerformed(ActionEvent evt)
protected void deleteFigures(Iterator figures)
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 © 2025 Central Laboratory of the Research Councils. All Rights Reserved.