Draws a line using the coordinate system defined by setLimits().
(double x1, double y1, double x2, double y2)
| 1220 | |
| 1221 | /** Draws a line using the coordinate system defined by setLimits(). */ |
| 1222 | public void drawLine(double x1, double y1, double x2, double y2) { |
| 1223 | allPlotObjects.add(new PlotObject(x1, y1, x2, y2, currentLineWidth, 0, currentColor, PlotObject.LINE)); |
| 1224 | } |
| 1225 | |
| 1226 | /** Draws a line using a normalized 0-1, 0-1 coordinate system, |
| 1227 | * with (0,0) at the top left and (1,1) at the lower right corner. |
no test coverage detected