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

cytoscape.visual.mappings
Class LinearNumberToColorInterpolator

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

public class LinearNumberToColorInterpolator
extends LinearNumberInterpolator

The class provides a linear interpolation between color values. The (red,green,blue,alpha) values of the returned color are linearly interpolated from the associated values of the lower and upper colors, according the the fractional distance frac from the lower value. If either object argument is not a Color, null is returned.


Constructor Summary
LinearNumberToColorInterpolator()
          Creates a new LinearNumberToColorInterpolator 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

LinearNumberToColorInterpolator

public LinearNumberToColorInterpolator()
Creates a new LinearNumberToColorInterpolator 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