Untitled
public text v1 · immutable// Alexander Clark
// 3/10/08
import java.awt.Color;
import java.awt.Graphics;
public class MyRectangle
{
public int RectX1;
public int RectY1;
public int RectWidth;
public int RectHeight;
public boolean isFilled;
public Color RectColor;
// no argument constructor
public MyRectangle(int x1, int y1, int width, int height, boolean fill, Color RectCol)
{
RectX1 = 0;
RectY1 = 0;
RectWidth = 0;
RectHeight = 0;
isFilled = false;
RectColor = Color.BLACK;
}