@@ -0,0 +1,1094 @@
+import java.awt.BasicStroke;%0Aimport java.awt.Color;%0Aimport java.awt.Graphics;%0Aimport java.awt.Graphics2D;%0A%0Apublic class Rectangle implements Sprite %7B%0A    private int width;%0A    private int height;%0A    private Color color;%0A%0A    /**%0A     * Create a box that has dimensions width and height, filled with%0A     * startColor.%0A     */%0A    public Rectangle(int width, int height, Color color) %7B%0A        this.width = width;%0A        this.height = height;%0A        this.color = color;%0A    %7D%0A%0A    public void draw(Graphics surface, int x, int y) %7B%0A        // Draw the object%0A        surface.setColor(color);%0A        surface.fillRect(x, y, width, height);%0A        surface.setColor(Color.BLACK);%0A        ((Graphics2D) surface).setStroke(new BasicStroke(3.0f));%0A        surface.drawRect(x, y, width, height);%0A    %7D%0A%0A    public int getWidth() %7B%0A        return width;%0A    %7D%0A%0A    public int getHeight() %7B%0A        return height;%0A    %7D%0A%0A    void draw(Graphics surface) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22); //To change body of generated methods, choose Tools %7C Templates.%0A    %7D%0A%7D%0A

Create Rectangle.java