public class ROIAddsSequenceEdit extends AbstractROIsSequenceEdit
| Constructor and Description |
|---|
ROIAddsSequenceEdit(Sequence sequence,
java.util.Collection<ROI> rois) |
ROIAddsSequenceEdit(Sequence sequence,
java.util.Collection<ROI> rois,
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, getROIsgetSequenceaddEdit, canRedo, canUndo, getIcon, getPresentationName, getRedoPresentationName, getSource, getUndoPresentationName, isMergeable, isSignificant, replaceEdit, setMergeable, toStringpublic ROIAddsSequenceEdit(Sequence sequence, java.util.Collection<ROI> rois, java.lang.String name)
public ROIAddsSequenceEdit(Sequence sequence, java.util.Collection<ROI> rois)
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()