public class BezierNodeEdit
extends javax.swing.undo.AbstractUndoableEdit
UndoableEdit
event which can undo a change of a node in
a BezierFigure
.Constructor and Description |
---|
BezierNodeEdit(BezierFigure owner,
int index,
BezierPath.Node oldValue,
BezierPath.Node newValue)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit) |
java.lang.String |
getPresentationName() |
void |
redo() |
void |
undo() |
public BezierNodeEdit(BezierFigure owner, int index, BezierPath.Node oldValue, BezierPath.Node newValue)
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
getPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public void redo() throws javax.swing.undo.CannotRedoException
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CannotRedoException
public void undo() throws javax.swing.undo.CannotUndoException
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CannotUndoException
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit
in interface javax.swing.undo.UndoableEdit
addEdit
in class javax.swing.undo.AbstractUndoableEdit