FileDocCategorySizeDatePackage
ArcTest.javaAPI DocExample4405Sat Sep 12 03:01:00 BST 1998None

ArcTest

public class ArcTest extends Applet
An interactive test of the Graphics.drawArc and Graphics.fillArc routines. Can be run either as a standalone application by typing "java ArcTest" or as an applet in the AppletViewer.

Fields Summary
ArcControls
controls
Constructors Summary
Methods Summary
public booleanhandleEvent(java.awt.Event e)

	if (e.id == Event.WINDOW_DESTROY) {
	    System.exit(0);
	}
	return false;
    
public voidinit()

	setLayout(new BorderLayout());
	ArcCanvas c = new ArcCanvas();
	add("Center", c);
	add("South", controls = new ArcControls(c));
    
public static voidmain(java.lang.String[] args)

	Frame f = new Frame("ArcTest");
	ArcTest	arcTest = new ArcTest();

	arcTest.init();
	arcTest.start();

	f.add("Center", arcTest);
	f.resize(300, 300);
	f.show();
    
public voidstart()

	controls.enable();
    
public voidstop()

	controls.disable();