Home / Development / Documentation / 2.0.44 / NodeBranchDataBackup
TreeGraph 2
 


info.bioinfweb.treegraph.document.undo
Class NodeBranchDataBackup

java.lang.Object
  extended by 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

Field Summary
private  NodeBranchDataAdapter adapter
           
private  List<TextElementData> list
           
 
Constructor Summary
NodeBranchDataBackup(NodeBranchDataAdapter adapter, Node root)
           
 
Method Summary
private  void backupSubtree(Node root)
           
 void restore(Node root)
          Restores the previous values of the specified column if it previously exsited.
private  int restoreSubtree(Node root, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adapter

private NodeBranchDataAdapter adapter

list

private List<TextElementData> list
Constructor Detail

NodeBranchDataBackup

public NodeBranchDataBackup(NodeBranchDataAdapter adapter,
                            Node root)
Method Detail

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 -