
/**
 * Write a description of class MyOval here.
 * 
 * @David Olson 
 * @Updates and changes by Michael Rivers
 * @version 1.1 April 25th 2006
 */

import java.awt.*;
import javax.swing.*;
public class MyOval extends Shape
{
    /**
     * Constructors for objects of class MyOval
     */
    public MyOval()
    {
        super();
    }
    public MyOval(int x, int y, int xLength, int yLength, Color shapeColor)
    {
        super(x,y,xLength,yLength,shapeColor);
    }

    public MyOval(int x, int y, int xLength, int yLength, Color shapeColor, boolean bFill)
    {
        super(x,y,xLength,yLength,shapeColor,bFill);
    }

    public MyOval(int x, int y, int xLength, int yLength)
    {
        super(x,y,xLength,yLength);
    }

    public MyOval(int x, int y, int xLength, int yLength, boolean bFill)
    {
        super(x,y,xLength,yLength, bFill);
    }

    public void draw(Graphics g)
    {
        g.setColor(shapeColor); 
        if(bFill)
            g.fillOval(x,y,xLength,yLength);
        else
            g.drawOval(x,y,xLength,yLength);        
    }  
}
