info.bioinfweb.treegraph.document.undo
Class NodeBranchDataBackup
java.lang.Object
  
info.bioinfweb.treegraph.document.undo.NodeBranchDataBackup
public class NodeBranchDataBackup
- extends Object
 
Used to backup a node/branch data column beforen an edit operation.
- Since:
 
  - 2.0.24
 
- Author:
 
  - Ben Stöver
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
adapter
private NodeBranchDataAdapter adapter
list
private List<TextElementData> list
NodeBranchDataBackup
public NodeBranchDataBackup(NodeBranchDataAdapter adapter,
                            Node root)
backupSubtree
private void backupSubtree(Node root)
 
restoreSubtree
private int restoreSubtree(Node root,
                           int index)
 
restore
public void restore(Node root)
- Restores the previous values of the specified column if it previously exsited. Otherwise the 
 specified column is deleted.
- Parameters:
 root -