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 class
AlignNodesCommand.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 String
getPresentationName()
String
getRedoPresentationName()
String
getUndoPresentationName()
void
redo()
void
undo()
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:
getPresentationName
in interfaceUndoableEdit
- Overrides:
getPresentationName
in classAbstractUndoableEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationName
in interfaceUndoableEdit
- Overrides:
getRedoPresentationName
in classAbstractUndoableEdit
-
getUndoPresentationName
- Specified by:
getUndoPresentationName
in interfaceUndoableEdit
- Overrides:
getUndoPresentationName
in classAbstractUndoableEdit
-
redo
- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
- Throws:
CannotRedoException
-
undo
- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-