package vgp.curve.deCasteljau;

import java.awt.Rectangle;

import jv.project.PjProject;
import vgp.object.PsApplet;

/**
 * Illustrates the de Casteljau algorithm for evaluating a Bezier curve.
 * 
 * @author		Konrad Polthier
 * @version		03.09.07, 2.00 revised (kp) Full rewrite, superclass changed to PsApplet.<br>
 * 				03.11.06, 2.00 revised (kp) Package moved to vgp.curve.deCasteljau from dev.app.deCasteljau.<br>
 *					05.10.04, 1.00 created (kp) 
 */
public class PaDeCasteljau extends PsApplet {
	/** Interface of applet to inform about author, version, and copyright */
	public String getAppletInfo() {
		return "Name: "		+ this.getClass().getName()+ "\r\n" +
				 "Author: "		+ "Konrad Polthier" + "\r\n" +
				 "Version: "	+ "2.00" + "\r\n" +
				 "Illustrates the de Casteljau algorithm for evaluating a Bezier curve." + "\r\n";
	}
	/** Return a new allocated project instance. */
	public Rectangle getSizeOfFrame() {
		return new Rectangle(380, 5, 750, 600);
	}
	/** Return a new allocated project instance. */
	public PjProject getProject() {
		return new PjDeCasteljau();
	}
	/**
	 * Standalone application support. The main() method acts as the applet's
	 * entry point when it is run as a standalone application. It is ignored
	 * if the applet is run from within an HTML page.
	 */
	public static void main(String args[]) {
		main(new PaDeCasteljau(), args);
	}
}
