public class ROIReplaceSequenceEdit extends AbstractROISequenceEdit
Constructor and Description |
---|
ROIReplaceSequenceEdit(Sequence sequence,
ROI oldRoi,
ROI newRoi) |
ROIReplaceSequenceEdit(Sequence sequence,
ROI oldRoi,
ROI newRoi,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
redo()
Throws
CannotRedoException if canRedo returns false. |
void |
undo()
Throws
CannotUndoException if canUndo returns false . |
die, getROI
getSequence
addEdit, canRedo, canUndo, getIcon, getPresentationName, getRedoPresentationName, getSource, getUndoPresentationName, isMergeable, isSignificant, replaceEdit, setMergeable, toString
public ROIReplaceSequenceEdit(Sequence sequence, ROI oldRoi, ROI newRoi, java.lang.String name)
public ROIReplaceSequenceEdit(Sequence sequence, ROI oldRoi, ROI newRoi)
public void undo() throws javax.swing.undo.CannotUndoException
AbstractIcyUndoableEdit
CannotUndoException
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.UndoableEdit
undo
in class AbstractIcyUndoableEdit
javax.swing.undo.CannotUndoException
- if canUndo
returns false
AbstractIcyUndoableEdit.canUndo()
public void redo() throws javax.swing.undo.CannotRedoException
AbstractIcyUndoableEdit
CannotRedoException
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.UndoableEdit
redo
in class AbstractIcyUndoableEdit
javax.swing.undo.CannotRedoException
- if canRedo
returns false
AbstractIcyUndoableEdit.canRedo()