
/**
 * Write a description of class MyRectangle here.
 * 
 * @author Michael Rivers 
 * @version April 18th 2006
 */

import java.awt.*;
import javax.swing.*;
public class MyRectangle extends Shape
{
    // instance variables - replace the example below with your own

    /**
     * Constructors for objects of class MyRectangle
     */
    public MyRectangle()
    {
        super();
    }

    public MyRectangle(int x, int y, int xLength, int yLength, Color shapeColor)
    {
        super(x,y,xLength,yLength,shapeColor);
    }
    
    public MyRectangle(int x, int y, int xLength, int yLength, Color shapeColor, boolean bFill)
    {
        super(x,y,xLength,yLength,shapeColor,bFill);
    }
    
    public MyRectangle(int x, int y, int xLength, int yLength)
    {
        super(x,y,xLength,yLength);
    }
    
    public MyRectangle(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.fillRect(x,y,xLength,yLength);
            else
                g.drawRect(x,y,xLength,yLength);
    }
}
