Cytoscape 2.8.0 API

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
clone, equals, finalize, 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!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.