public class AttributeChangeEdit<T>
extends javax.swing.undo.AbstractUndoableEdit
UndoableEdit event which can undo a change of a Figure
attribute.| Constructor and Description |
|---|
AttributeChangeEdit(Figure owner,
AttributeKey<T> name,
T oldValue,
T newValue)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPresentationName() |
void |
redo() |
void |
undo() |
public AttributeChangeEdit(Figure owner, AttributeKey<T> name, T oldValue, T 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.CannotUndoException