ch.javasoft.swing
Class StretchGridLayout.StueckLinFunction

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

public static class StretchGridLayout.StueckLinFunction
extends Object

A stueckweise lineare Funktion. Sorry, don't know the english term :-(

Author:
pesche

Constructor Summary
StretchGridLayout.StueckLinFunction()
           
 
Method Summary
 void add(StretchGridLayout.LinearFunction f)
           
 StretchGridLayout.LinearFunction element(int index)
           
 double eval(double x)
          Evaluates the function at x
 double inv(double y)
          Inverse function of eval(double)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StretchGridLayout.StueckLinFunction

public StretchGridLayout.StueckLinFunction()
Method Detail

element

public StretchGridLayout.LinearFunction element(int index)

add

public void add(StretchGridLayout.LinearFunction f)

eval

public double eval(double x)
Evaluates the function at x

Parameters:
x - the c coordinate
Returns:
The function value at c
See Also:
The inverse function of {@link #eval(double)}

inv

public double inv(double y)
Inverse function of eval(double)

Parameters:
y - the y value

toString

public String toString()
Overrides:
toString in class Object