cytoscape.visual.mappings
Class LinearNumberToColorInterpolator
java.lang.Object
cytoscape.visual.mappings.NumberInterpolator
cytoscape.visual.mappings.LinearNumberInterpolator
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.
LinearNumberToColorInterpolator
public LinearNumberToColorInterpolator()
- Creates a new LinearNumberToColorInterpolator object.
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!