Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.mappings
Class LinearNumberToNumberInterpolator

java.lang.Object
  extended by cytoscape.visual.mappings.NumberInterpolator
      extended by cytoscape.visual.mappings.LinearNumberInterpolator
          extended by cytoscape.visual.mappings.LinearNumberToNumberInterpolator
All Implemented Interfaces:
Interpolator

public class LinearNumberToNumberInterpolator
extends LinearNumberInterpolator

The class assumes that the supplied range objects are Numbers, and returns a linearly interplated value according to the value of frac. If either object argument is not a Number, null is returned.


Constructor Summary
LinearNumberToNumberInterpolator()
           
 
Method Summary
 Object getRangeValue(double frac, Object lowerRange, Object upperRange)
           
 
Methods inherited from class cytoscape.visual.mappings.LinearNumberInterpolator
getRangeValue
 
Methods inherited from class cytoscape.visual.mappings.NumberInterpolator
getRangeValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearNumberToNumberInterpolator

public LinearNumberToNumberInterpolator()
Method Detail

getRangeValue

public Object getRangeValue(double frac,
                            Object lowerRange,
                            Object upperRange)
Specified by:
getRangeValue in class LinearNumberInterpolator

www.cytoscape.org