public class TransformRestoreEdit
extends javax.swing.undo.AbstractUndoableEdit
UndoableEdit
event which can undo a lossy transform of a single
Figure
by restoring the figure using its transform restore data.
This object is useful for undoing lossy transformations, such as the rotation, scaling or shearing of a figure.
The transform restore data may consume a lot of memory. Undos of lossless
transforms, such as translations of a figure, should use TransformEdit
.
Constructor and Description |
---|
TransformRestoreEdit(Figure owner,
java.lang.Object oldTransformRestoreData,
java.lang.Object newTransformRestoreData)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPresentationName() |
void |
redo() |
void |
undo() |
public TransformRestoreEdit(Figure owner, java.lang.Object oldTransformRestoreData, java.lang.Object newTransformRestoreData)
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
getPresentationName
in class javax.swing.undo.AbstractUndoableEdit
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 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