kaapo.projectmanager.command
Class MoveConnectionPointEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
kaapo.projectmanager.command.AbstractUndoableEdit
kaapo.projectmanager.command.MoveConnectionPointEdit
- All Implemented Interfaces:
- Serializable, UndoableEdit
public class MoveConnectionPointEdit
- extends AbstractUndoableEdit
This class is an UndoableEdit that moves an point
/ segment of a Connection.
- Author:
- hprajani
- See Also:
- Serialized Form
MoveConnectionPointEdit
public MoveConnectionPointEdit(Point2D newPoint,
int pathIndex)
- constructs an edit that moves a connection point
- Parameters:
newPoint - new coordinatepathIndex - moved point or segment
undo
public void undo()
- Undos the moving.
- Specified by:
undo in interface UndoableEdit- Overrides:
undo in class AbstractUndoableEdit
- See Also:
UndoableEdit.undo()
redo
public void redo()
- Redos the moving.
- Specified by:
redo in interface UndoableEdit- Overrides:
redo in class AbstractUndoableEdit
- See Also:
UndoableEdit.redo()
execute
public void execute(ProjectManager pm)
throws EditFailedException
- execution of this edit.
- Specified by:
execute in class AbstractUndoableEdit
- Parameters:
pm - the enviroment where the Edit is executed in.
- Throws:
EditFailedException - when the execution ends for some reason.- See Also:
AbstractUndoableEdit.execute(kaapo.projectmanager.ProjectManager)
canUndo
public boolean canUndo()
- Specified by:
canUndo in interface UndoableEdit- Overrides:
canUndo in class AbstractUndoableEdit
- See Also:
UndoableEdit.canUndo()
canRedo
public boolean canRedo()
- Specified by:
canRedo in interface UndoableEdit- Overrides:
canRedo in class AbstractUndoableEdit
- See Also:
UndoableEdit.canRedo()