Home / Development / Documentation / 2.0.44 / RerootEdit
TreeGraph 2
 


info.bioinfweb.treegraph.document.undo.edit
Class RerootEdit

java.lang.Object
  extended by info.bioinfweb.treegraph.document.undo.DocumentEdit
      extended by info.bioinfweb.treegraph.document.undo.ComplexDocumentEdit
          extended by info.bioinfweb.treegraph.document.undo.edit.RerootEdit
All Implemented Interfaces:
UndoableEdit

public class RerootEdit
extends ComplexDocumentEdit


Field Summary
static int DIALOG_HELP_TOPIC
           
private  Branch rootingPoint
           
 
Fields inherited from class info.bioinfweb.treegraph.document.undo.DocumentEdit
document
 
Constructor Summary
RerootEdit(Document document, Branch rootingPoint)
           
 
Method Summary
private  void copyBranchData(Branch source, Branch target)
           
private  void copyLabels(Labels source, Labels target)
           
 String getPresentationName()
           
protected  void performRedo()
           
private  void reroot(Branch position)
           
private  void showWarnings()
           
 
Methods inherited from class info.bioinfweb.treegraph.document.undo.ComplexDocumentEdit
findEquivilant, findEquivilant, redo, undo
 
Methods inherited from class info.bioinfweb.treegraph.document.undo.DocumentEdit
addEdit, canRedo, canUndo, die, getIsSubedit, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, setIsSubedit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIALOG_HELP_TOPIC

public static final int DIALOG_HELP_TOPIC
See Also:
Constant Field Values

rootingPoint

private Branch rootingPoint
Constructor Detail

RerootEdit

public RerootEdit(Document document,
                  Branch rootingPoint)
Method Detail

copyLabels

private void copyLabels(Labels source,
                        Labels target)

copyBranchData

private void copyBranchData(Branch source,
                            Branch target)

showWarnings

private void showWarnings()

reroot

private void reroot(Branch position)

performRedo

protected void performRedo()
Specified by:
performRedo in class ComplexDocumentEdit

getPresentationName

public String getPresentationName()