public class PropertyROIsEdit extends AbstractROIsEdit
| Constructor and Description |
|---|
PropertyROIsEdit(java.util.List<? extends ROI> rois,
java.lang.String propertyName,
java.util.List<java.lang.Object> previousValues,
java.lang.Object currentValue) |
PropertyROIsEdit(java.util.List<? extends ROI> rois,
java.lang.String propertyName,
java.util.List<java.lang.Object> previousValues,
java.lang.Object currentValue,
boolean mergeable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEdit(javax.swing.undo.UndoableEdit edit) |
void |
die()
Sets
alive to false. |
void |
redo()
Throws
CannotRedoException if canRedo returns false. |
void |
undo()
Throws
CannotUndoException if canUndo returns false. |
getROIscanRedo, canUndo, getIcon, getPresentationName, getRedoPresentationName, getSource, getUndoPresentationName, isMergeable, isSignificant, replaceEdit, setMergeable, toStringpublic PropertyROIsEdit(java.util.List<? extends ROI> rois, java.lang.String propertyName, java.util.List<java.lang.Object> previousValues, java.lang.Object currentValue, boolean mergeable)
public PropertyROIsEdit(java.util.List<? extends ROI> rois, java.lang.String propertyName, java.util.List<java.lang.Object> previousValues, java.lang.Object currentValue)
public void undo() throws javax.swing.undo.CannotUndoException
AbstractIcyUndoableEditCannotUndoException if canUndo returns false.
Sets hasBeenDone to false. Subclasses should override to undo the
operation represented by this edit. Override should begin with
a call to super.undo in interface javax.swing.undo.UndoableEditundo in class AbstractIcyUndoableEditjavax.swing.undo.CannotUndoException - if canUndo returns falseAbstractIcyUndoableEdit.canUndo()public void redo() throws javax.swing.undo.CannotRedoException
AbstractIcyUndoableEditCannotRedoException if canRedo returns false. Sets
hasBeenDone to true.
Subclasses should override to redo the operation represented by
this edit. Override should begin with a call to super.redo in interface javax.swing.undo.UndoableEditredo in class AbstractIcyUndoableEditjavax.swing.undo.CannotRedoException - if canRedo returns falseAbstractIcyUndoableEdit.canRedo()public boolean addEdit(javax.swing.undo.UndoableEdit edit)
addEdit in interface javax.swing.undo.UndoableEditaddEdit in class AbstractIcyUndoableEditpublic void die()
AbstractIcyUndoableEditalive to false. Note that this is a one way operation; dead edits cannot be
resurrected.undo or redo to a dead edit results in an exception being
thrown.
Typically an edit is killed when it is consolidated by another edit's addEdit or
replaceEdit method, or when it is dequeued from an UndoManager.
die in interface javax.swing.undo.UndoableEditdie in class AbstractIcyUndoableEdit