Draws a rectangle with top-left corner placed at (x,y).
(int x, int y, int width, int height)
| 1031 | * Draws a rectangle with top-left corner placed at (x,y). |
| 1032 | */ |
| 1033 | @Override |
| 1034 | public void drawRect(int x, int y, int width, int height) { |
| 1035 | Shape shape = new Rectangle(x, y, width, height); |
| 1036 | draw(shape); |
| 1037 | } |
| 1038 | |
| 1039 | /** |
| 1040 | * Clears a rectangle with top-left corner placed at (x,y) using the |