public class ROIReplacesSequenceEdit extends AbstractROIsSequenceEdit
Constructor and Description |
---|
ROIReplacesSequenceEdit(Sequence sequence,
java.util.Collection<ROI> oldRois,
java.util.Collection<ROI> newRois) |
ROIReplacesSequenceEdit(Sequence sequence,
java.util.Collection<ROI> oldRois,
java.util.Collection<ROI> newRois,
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, getROIs
getSequence
addEdit, canRedo, canUndo, getIcon, getPresentationName, getRedoPresentationName, getSource, getUndoPresentationName, isMergeable, isSignificant, replaceEdit, setMergeable, toString
public ROIReplacesSequenceEdit(Sequence sequence, java.util.Collection<ROI> oldRois, java.util.Collection<ROI> newRois, java.lang.String name)
public ROIReplacesSequenceEdit(Sequence sequence, java.util.Collection<ROI> oldRois, java.util.Collection<ROI> newRois)
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()