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.UndoableEditgetPresentationName in class javax.swing.undo.AbstractUndoableEditpublic void redo()
throws javax.swing.undo.CannotRedoException
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotRedoExceptionpublic void undo()
throws javax.swing.undo.CannotUndoException
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotUndoExceptionpublic boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit in interface javax.swing.undo.UndoableEditaddEdit in class javax.swing.undo.AbstractUndoableEdit