cytoscape.visual.mappings
Class FlatInterpolator
java.lang.Object
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.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOWER
public static final Integer LOWER
UPPER
public static final Integer UPPER
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.
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!
Copyright 2010 Cytoscape Consortium. All rights reserved.