Cytoscape 2.6.2 (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()
          Creates a new LinearNumberToNumberInterpolator object.
 
Method Summary
 Object getRangeValue(double frac, Object lowerRange, Object upperRange)
          DOCUMENT ME!
 
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()
Creates a new LinearNumberToNumberInterpolator object.

Method Detail

getRangeValue

public Object getRangeValue(double frac,
                            Object lowerRange,
                            Object upperRange)
DOCUMENT ME!

Specified by:
getRangeValue in class LinearNumberInterpolator
Parameters:
frac - DOCUMENT ME!
lowerRange - DOCUMENT ME!
upperRange - DOCUMENT ME!
Returns:
DOCUMENT ME!

www.cytoscape.org