Package jpicedt.graphic.toolkit
Class EditorKit.SelectMouseToolAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jpicedt.graphic.toolkit.PEAction
-
- jpicedt.graphic.toolkit.EditorKit.SelectMouseToolAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
- Enclosing class:
- EditorKit
public static class EditorKit.SelectMouseToolAction extends PEAction
Sets the current mouse-tool for the editor-kit. Action commands are the same as the predefined mouse-tool's names for this kit.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectMouseToolAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer, java.lang.String mouseToolName)Construct a new SelectMouseToolAction for the given mouse-tool name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)This is a default implementation of the "actionPerformed" method suited for undoable actions : we first call "beginUndoableUpdate" with "actionName" as the presentation name, then delegate to "undoableActionPerformed", finally mark the undoable-update as ended.-
Methods inherited from class jpicedt.graphic.toolkit.PEAction
getCanvas, getDrawing, getEditorKit, getSelectedObject, setAttribute, undoableActionPerformed
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
SelectMouseToolAction
public SelectMouseToolAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer, java.lang.String mouseToolName)
Construct a new SelectMouseToolAction for the given mouse-tool name.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from class:PEActionThis is a default implementation of the "actionPerformed" method suited for undoable actions : we first call "beginUndoableUpdate" with "actionName" as the presentation name, then delegate to "undoableActionPerformed", finally mark the undoable-update as ended.Action that don't want to be undoable should simply override this method as usual.
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classPEAction
-
-