public interface SwingEditFactory<T>
SwingUndoAlignmentModel
must
implement this interface.
The type of edit that shall be created can be obtained by the class type of the passed edit
objects. These objects provide getter methods that allow to access the relevant data. The returned object
might also be a wrapper of the passed edit.
Important: Edit objects are executed by SwingUndoAlignmentModel
and added to the linked
UndoManager
after it called one of the methods specified here, which means that implementing
classes should not execute or add the the edits they return to the undo manager by themselves within
implementations of methods of this interface.
SwingUndoAlignmentModel
Modifier and Type | Method and Description |
---|---|
SwingAddSequenceEdit |
createAddSequenceEdit(SwingConcreteAddSequenceEdit<T> edit)
This method is called if an edit object that inserts a new sequence shall be created.
|
javax.swing.undo.UndoableEdit |
createEdit(LibrAlignSwingAlignmentEdit<T> edit)
This method is called to create new edit objects (except if a new sequence shall be added).
|
javax.swing.undo.UndoableEdit createEdit(LibrAlignSwingAlignmentEdit<T> edit)
edit
- the default LibrAlign edit that would perform the requested operationSwingUndoAlignmentModel
SwingAddSequenceEdit createAddSequenceEdit(SwingConcreteAddSequenceEdit<T> edit)
edit
- the default LibrAlign edit that would perform the requested operation.SwingUndoAlignmentModel