|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--edu.neu.ccs.gui.MouseAction
Encapsulates an action that is performed as a result
of a MouseEvent.
| 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 | |
MouseAction()
Constructs a mouse action with no name or icon. |
|
MouseAction(String name)
Constructs a mouse action with the given name but no icon. |
|
MouseAction(String name,
Icon icon)
Constructs a mouse action with the given name and icon. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent evt)
Performs this action by calling the method of this class
intended to perform tasks requiring information
contained in the MouseEvent
triggering this action. |
abstract void |
mouseActionPerformed(MouseEvent mevt)
Performs the tasks encapsulated by this action. |
| 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 |
public MouseAction()
public MouseAction(String name)
name - the name for this action
public MouseAction(String name,
Icon icon)
name - the name for this actionicon - the icon for this action| Method Detail |
public final void actionPerformed(ActionEvent evt)
mouseActionPerformed method of this class
intended to perform tasks requiring information
contained in the MouseEvent
triggering this action.
If the given event is not a
MouseActionEvent,
this action is not performed.
evt - an object encapsulating an event
that triggered this actionpublic abstract void mouseActionPerformed(MouseEvent mevt)
mevt - the mouse event that triggered this action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||