Changes the drawing color for the next objects that will be added to the plot. For selecting the color of the curve passed with the constructor, use setColor before draw . The frame and labels are always drawn in black.
(Color c)
| 1171 | * use <code>setColor</code> before <code>draw</code>. |
| 1172 | * The frame and labels are always drawn in black. */ |
| 1173 | public void setColor(Color c) { |
| 1174 | currentColor = c; |
| 1175 | currentColor2 = null; |
| 1176 | } |
| 1177 | |
| 1178 | public void setColor(String color) { |
| 1179 | setColor(Colors.decode(color, Color.black)); |
no test coverage detected