public class ROIRemovesSequenceEdit extends AbstractROIsSequenceEdit
Constructor and Description |
---|
ROIRemovesSequenceEdit(Sequence sequence,
java.util.Collection<ROI> rois) |
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 ROIRemovesSequenceEdit(Sequence sequence, java.util.Collection<ROI> rois)
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()