import java.awt.*;
import java.awt.image.*;
import java.io.*;
import java.util.*;
import javax.imageio.*;

/**
 * Write a description of class Rectangle here.
 *
 * @author (your name)
 * @version (a version number or a date)
 */
public class Rectangle
{
    // rectangle instance variables
    protected int width;
    protected int height;

    /**
     * Default Constructor
     */
    public Rectangle()
    {
        width = 0;
        height = 0;
    }
    /**
     * Constructor with arguements
     */
    public Rectangle(int w, int h)
    {
        width = w;
        height = h;
    }
    // Set and Get methods for
    public void setWidth(int w) {
        width = w;
    }
    public void setHeight(int h) {
        height = h;
    }
    public int getWidth() {
        return width;
    }
    public int getHeight() {
        return height;
    }
    // Draw the rectangle at point x, y in the DrawingBox
    public void draw(DrawingBox box, int x, int y) {
        box.drawRect(x, y, width, height);
    }
    public static void main (String [] args)
    {
        DrawingBox box = new DrawingBox();
        Rectangle r = new Rectangle(250,150);

        // draw the rectangle at point x = 10, y = 10,
        r.draw(box, 10, 10);

        // draw it at point 10 200
        r.draw(box, 10, 200);
    }

}
