Class ComponentMoveResizeUndoAction
- java.lang.Object
-
- com.inductiveautomation.factorypmi.designer.workspace.ComponentMoveResizeUndoAction
-
- All Implemented Interfaces:
UndoManager.UndoAction
public class ComponentMoveResizeUndoAction extends java.lang.Object implements UndoManager.UndoAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classComponentMoveResizeUndoAction.CompMoveInfo
-
Constructor Summary
Constructors Constructor Description ComponentMoveResizeUndoAction()ComponentMoveResizeUndoAction(java.lang.String descVerb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(javax.swing.JComponent comp, java.awt.geom.Rectangle2D newBounds)voidadd(javax.swing.JComponent comp, java.awt.geom.Rectangle2D oldBounds, java.awt.geom.Rectangle2D newBounds)booleanexecute()This function executes (redoes) the actionjava.lang.StringgetDescription()The description of the action will be used to determine grouping equality as well as for display purposes.booleanisGroupSequenceIndependent()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.StringtoString()booleanundo()This function will reverse the action
-
-
-
Method Detail
-
add
public void add(javax.swing.JComponent comp, java.awt.geom.Rectangle2D oldBounds, java.awt.geom.Rectangle2D newBounds)
-
add
public void add(javax.swing.JComponent comp, java.awt.geom.Rectangle2D newBounds)
-
getDescription
public java.lang.String getDescription()
Description copied from interface:UndoManager.UndoActionThe description of the action will be used to determine grouping equality as well as for display purposes.- Specified by:
getDescriptionin interfaceUndoManager.UndoAction
-
undo
public boolean undo()
Description copied from interface:UndoManager.UndoActionThis function will reverse the action- Specified by:
undoin interfaceUndoManager.UndoAction- Returns:
- false if the undo failed
-
execute
public boolean execute()
Description copied from interface:UndoManager.UndoActionThis function executes (redoes) the action- Specified by:
executein interfaceUndoManager.UndoAction- Returns:
- false if the execution failed
-
isGroupSequenceIndependent
public boolean isGroupSequenceIndependent()
Description copied from interface:UndoManager.UndoActionThis 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.- Specified by:
isGroupSequenceIndependentin interfaceUndoManager.UndoAction
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-