cytoscape.visual.mappings
Class LinearNumberInterpolator
java.lang.Object
cytoscape.visual.mappings.NumberInterpolator
cytoscape.visual.mappings.LinearNumberInterpolator
- All Implemented Interfaces:
- Interpolator
- Direct Known Subclasses:
- LinearNumberToColorInterpolator, LinearNumberToNumberInterpolator
public abstract class LinearNumberInterpolator
- extends NumberInterpolator
This subclass of NumberInterpolator further assumes a linear interpolation,
and calculates the fractional distance of the target domain value from
the lower boundary value for the convenience of subclasses.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearNumberInterpolator
public LinearNumberInterpolator()
getRangeValue
public Object getRangeValue(double lowerDomain,
Object lowerRange,
double upperDomain,
Object upperRange,
double domainValue)
- Specified by:
getRangeValue
in class NumberInterpolator
getRangeValue
public abstract Object getRangeValue(double frac,
Object lowerRange,
Object upperRange)