/** * Draws a new instance of a Rectangle object with the left and right edges of the rectangle at x * and x + width. The top and bottom edges are at y and y + height. * * @pre an intialized DrawingTool * @param marco an initialized DrawingTool * @post leaves your DrawingTool up and at myX,myY */ public void draw(DrawingTool marco) { marco.up(); marco.move(myX, myY); marco.down(); marco.drawRect(myWidth, myHeight); marco.up(); }