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)
- DOCUMENT ME!
- Specified by:
getRangeValue
in class NumberInterpolator
- Parameters:
lowerDomain
- DOCUMENT ME!lowerRange
- DOCUMENT ME!upperDomain
- DOCUMENT ME!upperRange
- DOCUMENT ME!domainValue
- DOCUMENT ME!
- Returns:
- DOCUMENT ME!
getRangeValue
public abstract Object getRangeValue(double frac,
Object lowerRange,
Object upperRange)
- DOCUMENT ME!
- Parameters:
frac
- DOCUMENT ME!lowerRange
- DOCUMENT ME!upperRange
- DOCUMENT ME!
- Returns:
- DOCUMENT ME!
Copyright 2010 Cytoscape Consortium. All rights reserved.