package GraphDemo;

/**
 * Grapher.java
 *
 *
 * Created: Wed Apr 25 10:31:38 2001
 *
 * @author Stuart C. Shapiro
 */

public class Grapher extends NGP.Containers.Frame{
    private static NGP.Containers.Column _column;
    private static NGP.Components.QuitButton _quitButton;


    public Grapher (){
	super("Grapher");
	_column = new NGP.Containers.Column(this);
	_quitButton = new NGP.Components.QuitButton(_column, "QUIT");
    }

    public static void main (String[] args) {
	Graph graph;
	Grapher gf = new Grapher();

	new NGP.Components.Label(_column, "y=x");
	new Graph(_column, new yEqX());

	new NGP.Components.Label(_column, "y=x/3");
	new Graph(_column, new yEqXDiv3());

	new NGP.Components.Label(_column, "y=x*x");
	new Graph(_column, new yEqXSq());

	new NGP.Components.Label(_column, "y=3x+x*x/5");
	new Graph(_column, new yEq3X_XSq());

	gf.pack();
	gf.show();
    } // end of main ()
    
}// Grapher
