Home / Development / Documentation / 2.0.44 / BranchSpaceAboveAdapter
TreeGraph 2
 


info.bioinfweb.treegraph.document.format.adapters.distance
Class BranchSpaceAboveAdapter

java.lang.Object
  extended by info.bioinfweb.treegraph.document.format.adapters.distance.BranchSpaceAboveAdapter
All Implemented Interfaces:
DistanceAdapter

public class BranchSpaceAboveAdapter
extends Object
implements DistanceAdapter

Since:
2.0.23
Author:
Ben Stöver

Constructor Summary
BranchSpaceAboveAdapter()
           
 
Method Summary
 float getDistance(Node node)
          Returns the distance value in millimeters
 void setDistance(float distance, Node node)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BranchSpaceAboveAdapter

public BranchSpaceAboveAdapter()
Method Detail

setDistance

public void setDistance(float distance,
                        Node node)
Specified by:
setDistance in interface DistanceAdapter
Parameters:
distance - the new distance value in millimeters

getDistance

public float getDistance(Node node)
Description copied from interface: DistanceAdapter
Returns the distance value in millimeters

Specified by:
getDistance in interface DistanceAdapter
Parameters:
node - the node to get the distance value from
Returns:

toString

public String toString()
Overrides:
toString in class Object