import java.applet.*; import java.awt.*; import NewCircle; /** * A simple attempt to test the circle class. */ public class NewCircleTester extends Applet { public void paint(Graphics g) { // Create a circle and draw it. // Test of: NewCircle(int,Color) // Test of: draw(int,int,Graphics) NewCircle circ = new NewCircle(10,Color.red); circ.draw(5,5,g); // Test of: setSize circ.setSize(20); circ.draw(30,10,g); // Test of: setColor circ.setColor(Color.blue); circ.draw(10,40,g); // More tests of setColor (more to test the outlining in // my special version of the circle class). Also begins // work on concentric circles. circ.setSize(100); circ.setColor(Color.white); circ.draw(100,100,g); circ.setSize(50); circ.draw(100,100,g); circ.setSize(100); circ.setColor(Color.yellow); circ.draw(200,200,g); circ.setSize(50); circ.draw(200,200,g); // Test of: NewCircle(int) circ = new NewCircle(5); circ.draw(5,5,g); } //paint(Graphics) } // class NewCircleTester