package GraphDemo;

/**
 * Graph.java
 *
 *
 * Created: Wed Apr 25 10:40:18 2001
 *
 * @author Stuart C. Shapiro
 */

public class Graph extends NGP.Containers.DrawingPanel {

    public Graph (NGP.Container container, FunctionsOfOneInt fn){
	super(container);
	this.setDimension(new java.awt.Dimension(100, 100));
	this.setColor(java.awt.Color.white);

	for (int x = 0; x <= 100; x++) {
	    new DataPoint(this, x, fn.apply(x));
	} // end of for
	
    }
}// Graph
