|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmetricsOverlay.model.mappings.RangeInterpolator
public class RangeInterpolator
This class provides the ability to interpolate any range value into a sensible value required by the mapping interpolator. This class requires knowledge of the different types of ranges that exist.
Shrinking Mapped Ranges is achieved by converting the map into an integer scale where each range/integer in the map is converted to a sequential sequence of map points. (e.g. Good[1,10], Bad[11-20], Ok[21-1000] gets converted to 0,1,2)
This class may be subclassed if needed. All methods should be overridden and super called.
Constructor Summary | |
---|---|
RangeInterpolator(Range curRange)
Basic constructor. |
Method Summary | |
---|---|
double |
getMax()
Gets the max value of any range types. |
double |
getMin()
Gets the min value of any range types. |
double |
interpolateValue(java.lang.String value)
This method interpolates values dependent on the type of range they belong to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeInterpolator(Range curRange)
curRange
- the range to be interpolated.Method Detail |
---|
public double getMax()
public double getMin()
public double interpolateValue(java.lang.String value)
value
- a String value representing the value to be interpolated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |