Package jpicedt.graphic.toolkit
Class EditorKit.EditGeometryAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jpicedt.graphic.toolkit.PEAction
-
- jpicedt.graphic.toolkit.EditorKit.EditGeometryAction
-
- 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.EditGeometryAction extends PEAction
Open a dialog that allows the user to edit the geometry of the currently selected element from a dialog box. (N/A if the selection contains more than one element)- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY
-
Constructor Summary
Constructors Constructor Description EditGeometryAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer)target=currently selected object if there's one, no effect otherwise.
-
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
-
-
-
-
Field Detail
-
KEY
public static final java.lang.String KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EditGeometryAction
public EditGeometryAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer)
target=currently selected object if there's one, no effect otherwise.
-
-
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
-
-