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. |
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!