FileDocCategorySizeDatePackage
GraphApplet.javaAPI DocExample1985Sat Sep 12 03:01:00 BST 1998None

GraphApplet

public class GraphApplet extends Applet

Fields Summary
Constructors Summary
Methods Summary
doublef(double x)

	return (Math.cos(x/5) + Math.sin(x/7) + 2) * size().height / 4;
    
public voidpaint(java.awt.Graphics g)

        for (int x = 0 ; x < size().width ; x++) {
	    g.drawLine(x, (int)f(x), x + 1, (int)f(x + 1));
        }