diva.sketch
Class CheckSelectionAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CheckSelectionAction(BasicInterpreter interp)
          Construct a deletion operator that executes within the given interpreter.
 
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.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckSelectionAction

public CheckSelectionAction(BasicInterpreter interp)
Construct a deletion operator that executes within the given interpreter.

Method Detail

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.