ch.javasoft.swing
Class StretchGridLayout.LinearFunction

java.lang.Object
  extended by ch.javasoft.swing.StretchGridLayout.LinearFunction
Enclosing class:
StretchGridLayout

public static class StretchGridLayout.LinearFunction
extends Object


Constructor Summary
StretchGridLayout.LinearFunction(double m, double b, double minX, double maxX)
          y = m * x + b
 
Method Summary
 double eval(double x)
           
 double getB()
           
 double getM()
           
 double getMaxX()
           
 double getMinX()
           
 void incB(double pb)
           
 void incM(double pm)
           
 double inv(double y)
          returns -1 if function cannot be inverted
 void setMaxX(double x)
           
 void setMinX(double x)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StretchGridLayout.LinearFunction

public StretchGridLayout.LinearFunction(double m,
                                        double b,
                                        double minX,
                                        double maxX)
y = m * x + b

Method Detail

getM

public double getM()

getB

public double getB()

getMinX

public double getMinX()

getMaxX

public double getMaxX()

setMinX

public void setMinX(double x)

setMaxX

public void setMaxX(double x)

eval

public double eval(double x)

inv

public double inv(double y)
returns -1 if function cannot be inverted


incM

public void incM(double pm)

incB

public void incB(double pb)

toString

public String toString()
Overrides:
toString in class Object