Cytoscape 2.8.0 API

cytoscape.visual.mappings
Class LinearNumberInterpolator

java.lang.Object
  extended by cytoscape.visual.mappings.NumberInterpolator
      extended by 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.


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

Constructor Detail

LinearNumberInterpolator

public LinearNumberInterpolator()
Method Detail

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!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.