org.jhotdraw.draw.event
Class BezierNodeEdit
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- org.jhotdraw.draw.event.BezierNodeEdit
-
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.undo.UndoableEdit
public class BezierNodeEdit extends javax.swing.undo.AbstractUndoableEditAnUndoableEditevent which can undo a change of a node in aBezierFigure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BezierNodeEdit(BezierFigure owner, int index, BezierPath.Node oldValue, BezierPath.Node newValue)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanaddEdit(javax.swing.undo.UndoableEdit anEdit)java.lang.StringgetPresentationName()voidredo()voidundo()
-
-
-
Constructor Detail
-
BezierNodeEdit
public BezierNodeEdit(BezierFigure owner, int index, BezierPath.Node oldValue, BezierPath.Node newValue)
Creates a new instance.
-
-
Method Detail
-
getPresentationName
public java.lang.String getPresentationName()
- Specified by:
getPresentationNamein interfacejavax.swing.undo.UndoableEdit- Overrides:
getPresentationNamein classjavax.swing.undo.AbstractUndoableEdit
-
redo
public void redo() throws javax.swing.undo.CannotRedoException- Specified by:
redoin interfacejavax.swing.undo.UndoableEdit- Overrides:
redoin classjavax.swing.undo.AbstractUndoableEdit- Throws:
javax.swing.undo.CannotRedoException
-
undo
public void undo() throws javax.swing.undo.CannotUndoException- Specified by:
undoin interfacejavax.swing.undo.UndoableEdit- Overrides:
undoin classjavax.swing.undo.AbstractUndoableEdit- Throws:
javax.swing.undo.CannotUndoException
-
addEdit
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
- Specified by:
addEditin interfacejavax.swing.undo.UndoableEdit- Overrides:
addEditin classjavax.swing.undo.AbstractUndoableEdit
-
-
DataMelt 3.0 © DataMelt by jWork.ORG