graphoutput
Class Range

java.lang.Object
  |
  +--graphoutput.Range

public class Range
extends java.lang.Object

Class Range Defines a range


Constructor Summary
Range()
           
Range(double min, double max)
           
 
Method Summary
 void checkRange(double x)
           
 double fitIntoRange(double n)
          calculates with a given value between 0 and 1 the position within the range
 double getMax()
           
 double getMax2()
           
 double getMax3()
           
 double getMin()
           
 double getMin2()
           
 double getMin3()
           
 double normalize(double v)
          calculates the relative position according to the range between 0.0 and 1.0
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Range

public Range(double min,
             double max)

Range

public Range()
Method Detail

getMin

public double getMin()

getMax

public double getMax()

getMin2

public double getMin2()

getMax2

public double getMax2()

getMin3

public double getMin3()

getMax3

public double getMax3()

checkRange

public void checkRange(double x)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

normalize

public double normalize(double v)
calculates the relative position according to the range between 0.0 and 1.0

fitIntoRange

public double fitIntoRange(double n)
calculates with a given value between 0 and 1 the position within the range