|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
jpicedt.graphic.toolkit.PEAction
jpicedt.graphic.toolkit.EditorKit.EditDispositionAction
Bring one or more selected objets to back, to front, forward or backward. Latter actions work only if a single Element is selected (otherwise it 's really too tedious to work out)
Field Summary | |
static String |
BACKWARD
Action command for moving element backward |
static String |
FORWARD
Action command for moving element forward |
static String |
TOBACK
Action command for bringing elements to back |
static String |
TOFRONT
Action command for bringing elements to front |
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 | |
EditorKit.EditDispositionAction(ActionDispatcher actionDispatcher,
ActionLocalizer localizer,
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. |
Method Summary | |
void |
actionPerformed(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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TOFRONT
public static final String TOBACK
public static final String FORWARD
public static final String BACKWARD
Constructor Detail |
public EditorKit.EditDispositionAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer, String type)
type
- TOFRONT, TOBACK, FORWARD or BACKWARDMethod Detail |
public void actionPerformed(ActionEvent e)
PEAction
Action that don't want to be undoable should simply override this method as usual.
actionPerformed
in interface ActionListener
actionPerformed
in class PEAction
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |