package fplot;
import java.awt.*;
import java.util.Vector;
/**
*
*
* @author Christian Semrau
*
* Christian.Semrau@student.uni-magdeburg.de
*
Homepage
*/
class Graph {
protected Vector graph = null;
protected int desiredLength;
protected int height, width;
protected Line last;
protected Dimension size;
final static int
OUTLOW = Line.OUTLOW,
OUTHIGH = Line.OUTHIGH,
OUTLEFT = Line.OUTLEFT,
OUTRIGHT = Line.OUTRIGHT,
UNDEFINED = Line.UNDEFINED;
/**
* Graph constructor comment.
*/
public Graph(int len, int h, int w) {
graph = new Vector(desiredLength = len);
height = h; width = w;
size = new Dimension(width, height);
}
/**
*
* @param g Graphics
*/
public void paint(Graphics g) {
g.setColor(Color.black);
// Stellt den Graphen dar
Line l;
for (int i = 0; i