public class ComponentMoveResizeUndoAction extends java.lang.Object implements UndoManager.UndoAction
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ComponentMoveResizeUndoAction.CompMoveInfo |
| Constructor and Description |
|---|
ComponentMoveResizeUndoAction() |
ComponentMoveResizeUndoAction(java.lang.String descVerb) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D newBounds) |
void |
add(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D oldBounds,
java.awt.geom.Rectangle2D newBounds) |
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.
|
java.lang.String |
toString() |
boolean |
undo()
This function will reverse the action
|
public ComponentMoveResizeUndoAction()
public ComponentMoveResizeUndoAction(java.lang.String descVerb)
public void add(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D oldBounds,
java.awt.geom.Rectangle2D newBounds)
public void add(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D newBounds)
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.UndoActionpublic java.lang.String toString()
toString in class java.lang.Object