Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.mappings
Class NumberInterpolator

java.lang.Object
  extended by 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.


Constructor Summary
NumberInterpolator()
           
 
Method Summary
abstract  Object getRangeValue(double lowerDomain, Object lowerRange, double upperDomain, Object upperRange, double domainValue)
          DOCUMENT ME!
 Object getRangeValue(Object lowerDomain, Object lowerRange, Object upperDomain, Object upperRange, Object domainValue)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberInterpolator

public NumberInterpolator()
Method Detail

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!

www.cytoscape.org