public class UndoMoveElements extends java.lang.Object implements UndoManager.UndoAction
| Constructor and Description |
|---|
UndoMoveElements(java.util.Map<javax.swing.JComponent,java.awt.geom.Rectangle2D> originalLocations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
This function executes (redoes) the action
|
java.lang.String |
getDescription()
The description of the action will be used to determine grouping equality as well as for display purposes.
|
boolean |
isGroupSequenceIndependent()
This function should return true if a group of these actions can be undone by ONLY calling undo() on the
first action in the group, and redone by ONLY calling execute() on the last action in the group.
|
boolean |
undo()
This function will reverse the action
|
public UndoMoveElements(java.util.Map<javax.swing.JComponent,java.awt.geom.Rectangle2D> originalLocations)
public java.lang.String getDescription()
UndoManager.UndoActiongetDescription in interface UndoManager.UndoActionpublic boolean undo()
UndoManager.UndoActionundo in interface UndoManager.UndoActionpublic boolean execute()
UndoManager.UndoActionexecute in interface UndoManager.UndoActionpublic boolean isGroupSequenceIndependent()
UndoManager.UndoActionisGroupSequenceIndependent in interface UndoManager.UndoAction