Draws a straight line from (x1,y1) to (x2,y2).
(int x1, int y1, int x2, int y2)
| 1013 | * Draws a straight line from (x1,y1) to (x2,y2). |
| 1014 | */ |
| 1015 | @Override |
| 1016 | public void drawLine(int x1, int y1, int x2, int y2) { |
| 1017 | Shape shape = new Line2D.Float(x1, y1, x2, y2); |
| 1018 | draw(shape); |
| 1019 | } |
| 1020 | |
| 1021 | /** |
| 1022 | * Fills a rectangle with top-left corner placed at (x,y). |