Methods Summary |
---|
public void | destroy()
remove(controls);
remove(canvas);
|
public java.lang.String | getAppletInfo()
return "An interactive test of the Graphics.drawArc and \nGraphics.fillArc routines. Can be run \neither as a standalone application by typing 'java ArcTest' \nor as an applet in the AppletViewer.";
|
public void | init()
setLayout(new BorderLayout());
canvas = new ArcCanvas();
add("Center", canvas);
add("South", controls = new ArcControls(canvas));
|
public static void | main(java.lang.String[] args)
Frame f = new Frame("ArcTest");
ArcTest arcTest = new ArcTest();
arcTest.init();
arcTest.start();
f.add("Center", arcTest);
f.setSize(300, 300);
f.show();
|
public void | processEvent(java.awt.AWTEvent e)
if (e.getID() == Event.WINDOW_DESTROY) {
System.exit(0);
}
|
public void | start()
controls.setEnabled(true);
|
public void | stop()
controls.setEnabled(false);
|