public class SetBoundsEdit
extends javax.swing.undo.AbstractUndoableEdit
Constructor and Description |
---|
SetBoundsEdit(AbstractFigure owner,
java.awt.geom.Point2D.Double oldAnchor,
java.awt.geom.Point2D.Double oldLead,
java.awt.geom.Point2D.Double newAnchor,
java.awt.geom.Point2D.Double newLead)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit) |
java.lang.String |
getPresentationName() |
void |
redo() |
boolean |
replaceEdit(javax.swing.undo.UndoableEdit anEdit) |
void |
undo() |
public SetBoundsEdit(AbstractFigure owner, java.awt.geom.Point2D.Double oldAnchor, java.awt.geom.Point2D.Double oldLead, java.awt.geom.Point2D.Double newAnchor, java.awt.geom.Point2D.Double newLead)
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
getPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit
in interface javax.swing.undo.UndoableEdit
addEdit
in class javax.swing.undo.AbstractUndoableEdit
public boolean replaceEdit(javax.swing.undo.UndoableEdit anEdit)
replaceEdit
in interface javax.swing.undo.UndoableEdit
replaceEdit
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