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