import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Graphics2D;

/**
 * Draws the rectangle and oval.
 *
 * @author Bob Futrelle
 * @version 0.1, 19 January 2003
 *
 * This only draws, when requested by the GUI (menu).
 *
 */
 
 class RectOvalDrawer extends JPanel {
 	
 	boolean ovalActive = false;
 	boolean rectActive = false;
 	 		
  	void drawOval() {
  		ovalActive = true;
  		repaint();
  			}
  	
  	void drawRect() {
  		rectActive = true;
  		repaint();
  			}

 	public void paint(Graphics g) {
 		 if(ovalActive) g.drawOval(100,100,200,300);
 		 if(rectActive) g.drawRect(200,300,150,250);
 		 }
 
 			
 } // class RectOvalDrawer

