public class DataSequenceEdit extends AbstractSequenceEdit
Constructor and Description |
---|
DataSequenceEdit(Sequence previous,
Sequence sequence) |
DataSequenceEdit(Sequence previous,
Sequence sequence,
java.awt.Image icon) |
DataSequenceEdit(Sequence previous,
Sequence sequence,
java.lang.String name) |
DataSequenceEdit(Sequence previous,
Sequence sequence,
java.lang.String name,
java.awt.Image icon) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo() |
void |
undo()
Throws
CannotUndoException if canUndo returns false . |
getSequence
addEdit, canUndo, die, getIcon, getPresentationName, getRedoPresentationName, getSource, getUndoPresentationName, isMergeable, isSignificant, redo, replaceEdit, setMergeable, toString
public DataSequenceEdit(Sequence previous, Sequence sequence, java.lang.String name, java.awt.Image icon)
public DataSequenceEdit(Sequence previous, Sequence sequence, java.lang.String name)
public DataSequenceEdit(Sequence previous, Sequence sequence, java.awt.Image icon)
public DataSequenceEdit(Sequence previous, Sequence sequence)
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 boolean canRedo()
canRedo
in interface javax.swing.undo.UndoableEdit
canRedo
in class AbstractIcyUndoableEdit