import java.awt.*;
import javax.swing.*;

public class ShapeTest extends JFrame {
    public void paint(Graphics g) {
	setBackground(Color.white);
	MyCircle circle1 = new MyCircle(100, new Point(150,150), Color.green, 
	                                new Font("Serif", Font.BOLD + Font.ITALIC, 30));
	MyCircle circle2 = new MyCircle(70, new Point(350,100), Color.orange);
	MyCircle circle3 = new MyCircle(40, new Point(250,250), Color.pink, 
	                                new Font("Monospaced", Font.BOLD, 15)); 
	MyRectangle rect = new MyRectangle(120,50, new Point(300,300), Color.red,
	                                new Font("Dialog", Font.ITALIC, 10));
	MyRectangle rect2 = new MyRectangle(150,100, new Point(100,400)
	, Color.yellow);
	MyShape shape = new MyShape(new Point(350,400), Color.yellow, new Font("DialogInput", Font.PLAIN, 40));
	circle1.draw(g);
	circle2.draw(g);
	circle3.draw(g);
	rect.draw(g);
	rect2.draw(g);
	shape.draw(g);
    }
    
    public static void main(String[] args) {
        ShapeTest f = new ShapeTest();
	f.setDefaultCloseOperation(EXIT_ON_CLOSE);
	f.setTitle("HW2");
	f.setSize(500,500);
	f.setVisible(true);
    }
}
