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.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