Home /
Development /
Documentation /
2.0.44 /
InsertRemoveSubtreeEdit
info.bioinfweb.treegraph.document.undo.edit
Class InsertRemoveSubtreeEdit
java.lang.Object
info.bioinfweb.treegraph.document.undo.DocumentEdit
info.bioinfweb.treegraph.document.undo.SaveLegendsEdit
info.bioinfweb.treegraph.document.undo.edit.InsertRemoveSubtreeEdit
- All Implemented Interfaces:
- WarningEdit, UndoableEdit
- Direct Known Subclasses:
- InsertSubtreeEdit, RemoveSubtreeEdit
public abstract class InsertRemoveSubtreeEdit
- extends SaveLegendsEdit
Method Summary |
protected void |
insert()
|
protected void |
remove()
|
Methods inherited from class info.bioinfweb.treegraph.document.undo.SaveLegendsEdit |
editSubtreeLegends, getHelpTopic, getLegendsReanchored, getLegendsRemoved, getLegendsSave, getShowWarnings, getWarningsMessages, restoreLegends, saveLegends, setHelpTopic, setLegendsReanchored, setLegendsRemoved, setShowWarnings, showWarningDialog |
Methods inherited from class info.bioinfweb.treegraph.document.undo.DocumentEdit |
addEdit, canRedo, canUndo, die, getIsSubedit, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, setIsSubedit, undo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected Node parent
root
protected Node root
index
protected int index
InsertRemoveSubtreeEdit
public InsertRemoveSubtreeEdit(Document document,
Node parent,
Node root,
int index)
- Parameters:
document
- parent
- the parent node of the root node of the subtree to be deletedroot
- the root node of the subtree to be deletedindex
- the index of the root node in the child list of its parent node
insert
protected void insert()
remove
protected void remove()