Class AlignNodesCommand
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.zoomfit.AlignNodesCommand
- All Implemented Interfaces:
Serializable,UndoableEdit
public class AlignNodesCommand extends AbstractUndoableEdit
- Author:
- Christian Klukas (c) 2004 IPK-Gatersleben
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlignNodesCommand.Command -
Constructor Summary
Constructors Constructor Description AlignNodesCommand(AlignNodesCommand.Command cmd, EditorSession session)Creates a Alignment Command, used for aligning nodes. -
Method Summary
Modifier and Type Method Description StringgetPresentationName()StringgetRedoPresentationName()StringgetUndoPresentationName()voidredo()voidundo()Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, isSignificant, replaceEdit, toString
-
Constructor Details
-
AlignNodesCommand
Creates a Alignment Command, used for aligning nodes.- Parameters:
cmd- The command to be carried outnodes- The node list to operate on, at least two nodes must be in the list.
-
-
Method Details
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationNamein interfaceUndoableEdit- Overrides:
getRedoPresentationNamein classAbstractUndoableEdit
-
getUndoPresentationName
- Specified by:
getUndoPresentationNamein interfaceUndoableEdit- Overrides:
getUndoPresentationNamein classAbstractUndoableEdit
-
redo
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotRedoException
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-