Cytoscape 2.8.0 API

cytoscape.visual.mappings
Class LinearNumberToNumberInterpolator

java.lang.Object
  extended by cytoscape.visual.mappings.NumberInterpolator
      extended by cytoscape.visual.mappings.LinearNumberInterpolator
          extended by cytoscape.visual.mappings.LinearNumberToNumberInterpolator
All Implemented Interfaces:
Interpolator

public class LinearNumberToNumberInterpolator
extends LinearNumberInterpolator

The class assumes that the supplied range objects are Numbers, and returns a linearly interplated value according to the value of frac. If either object argument is not a Number, null is returned.


Constructor Summary
LinearNumberToNumberInterpolator()
          Creates a new LinearNumberToNumberInterpolator object.
 
Method Summary
 Object getRangeValue(double frac, Object lowerRange, Object upperRange)
          DOCUMENT ME!
 
Methods inherited from class cytoscape.visual.mappings.LinearNumberInterpolator
getRangeValue
 
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

LinearNumberToNumberInterpolator

public LinearNumberToNumberInterpolator()
Creates a new LinearNumberToNumberInterpolator object.

Method Detail

getRangeValue

public Object getRangeValue(double frac,
                            Object lowerRange,
                            Object upperRange)
DOCUMENT ME!

Specified by:
getRangeValue in class LinearNumberInterpolator
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.