public static class EditorKit.EditDispositionAction extends PEAction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BACKWARD
Action command for moving element backward
|
static java.lang.String |
FORWARD
Action command for moving element forward
|
static java.lang.String |
TOBACK
Action command for bringing elements to back
|
static java.lang.String |
TOFRONT
Action command for bringing elements to front
|
| Constructor and Description |
|---|
EditDispositionAction(ActionDispatcher actionDispatcher,
ActionLocalizer localizer,
java.lang.String type)
Change the layer-disposition of one or more selected objects if there's one (and only ONE ! )
at the time the action is performed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(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.
|
getCanvas, getDrawing, getEditorKit, getSelectedObject, setAttribute, undoableActionPerformedpublic static final java.lang.String TOFRONT
public static final java.lang.String TOBACK
public static final java.lang.String FORWARD
public static final java.lang.String BACKWARD
public EditDispositionAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer, java.lang.String type)
type - TOFRONT, TOBACK, FORWARD or BACKWARDpublic void actionPerformed(java.awt.event.ActionEvent e)
PEActionAction that don't want to be undoable should simply override this method as usual.
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class PEActionSubmit a bug : syd@jpicedt.org