cytoscape.visual.mappings
Class NumberInterpolator
java.lang.Object
cytoscape.visual.mappings.NumberInterpolator
- All Implemented Interfaces:
- Interpolator
- Direct Known Subclasses:
- LinearNumberInterpolator
public abstract class NumberInterpolator
- extends Object
- implements Interpolator
This partial implementation of Interpolator assumes that the domain
values are some kind of number, and extracts the values into ordinary
doubles for the convenience of subclasses. If any argument is null, or
if any of the domain values is not an instance of Number, null is returned.
NumberInterpolator
public NumberInterpolator()
getRangeValue
public Object getRangeValue(Object lowerDomain,
Object lowerRange,
Object upperDomain,
Object upperRange,
Object domainValue)
- DOCUMENT ME!
- Specified by:
getRangeValue
in interface Interpolator
- 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 lowerDomain,
Object lowerRange,
double upperDomain,
Object upperRange,
double domainValue)
- DOCUMENT ME!
- Parameters:
lowerDomain
- DOCUMENT ME!lowerRange
- DOCUMENT ME!upperDomain
- DOCUMENT ME!upperRange
- DOCUMENT ME!domainValue
- DOCUMENT ME!
- Returns:
- DOCUMENT ME!