info.bioinfweb.treegraph.gui.dialogs.datatable.math
Class AddCalculator

java.lang.Object
  extended by info.bioinfweb.treegraph.gui.dialogs.datatable.math.AddCalculator
All Implemented Interfaces:
NodeDataCalculator

public class AddCalculator
extends java.lang.Object
implements NodeDataCalculator

Adds a value to the node data.

Author:
Ben Stöver

Field Summary
private  double addend
           
 
Constructor Summary
AddCalculator(double addend)
           
 
Method Summary
 double calculate(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addend

private double addend
Constructor Detail

AddCalculator

public AddCalculator(double addend)
Method Detail

calculate

public double calculate(double value)
Specified by:
calculate in interface NodeDataCalculator