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

cytoscape.visual.mappings
Class FlatInterpolator

java.lang.Object
  extended by cytoscape.visual.mappings.FlatInterpolator
All Implemented Interfaces:
Interpolator

public class FlatInterpolator
extends Object
implements Interpolator

This simple Interpolator returns the value at either the lower or upper boundary of the domain. Note that no check is made whether the supplied domainValue is actually within the boundaries.


Field Summary
static Integer LOWER
           
static Integer UPPER
           
 
Constructor Summary
FlatInterpolator()
          The default FlatInterpolator returns the range value at the lower boundary.
FlatInterpolator(Integer mode)
          Constructs a FlatInterpolator which returns the range value at the lower boundary unless the argument 'mode' is equal to FlatInterpolator.UPPER.
 
Method Summary
 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
 

Field Detail

LOWER

public static final Integer LOWER

UPPER

public static final Integer UPPER
Constructor Detail

FlatInterpolator

public FlatInterpolator()
The default FlatInterpolator returns the range value at the lower boundary.


FlatInterpolator

public FlatInterpolator(Integer mode)
Constructs a FlatInterpolator which returns the range value at the lower boundary unless the argument 'mode' is equal to FlatInterpolator.UPPER.

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!

www.cytoscape.org