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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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!
Copyright 2010 Cytoscape Consortium. All rights reserved.