info.bioinfweb.treegraph.document.undo.format
Class NodeDataFormatEdit

java.lang.Object
  extended by info.bioinfweb.treegraph.document.undo.DocumentEdit
      extended by info.bioinfweb.treegraph.document.undo.format.NodeDataFormatEdit
All Implemented Interfaces:
javax.swing.undo.UndoableEdit
Direct Known Subclasses:
BranchWidthsFromNodeDataEdit, ColorsFromNodeDataEdit

public abstract class NodeDataFormatEdit
extends DocumentEdit


Field Summary
 
Fields inherited from class info.bioinfweb.treegraph.document.undo.DocumentEdit
document
 
Constructor Summary
NodeDataFormatEdit(Document document)
           
 
Method Summary
static double calculateMaxNodeData(NodeDataAdapter adapter, Node root)
          Searches for the maximal node data specified by adapter in the subtree under root.
 
Methods inherited from class info.bioinfweb.treegraph.document.undo.DocumentEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.undo.UndoableEdit
getPresentationName
 

Constructor Detail

NodeDataFormatEdit

public NodeDataFormatEdit(Document document)
Method Detail

calculateMaxNodeData

public static double calculateMaxNodeData(NodeDataAdapter adapter,
                                          Node root)
Searches for the maximal node data specified by adapter in the subtree under root.

Parameters:
root - the root of the subtree
Returns:
the maximal node data (0 if no decimal value was found)