Sets the style of the specified PlotObject (curve, label, etc.) from a comma-delimited string ("color1,color2,lineWidth[,symbol][,hidden]"), where "color2" can be "none" and "symbol" and "hidden" are optional. PlotObjects here refers to curves, arrows, labels etc. (not legend, exes and frame, tho
(int index, String style)
| 1520 | * PlotObjects here refers to curves, arrows, labels etc. |
| 1521 | * (not legend, exes and frame, though implemented as PlotObjects) */ |
| 1522 | public void setStyle(int index, String style) { |
| 1523 | if (index<0 || index>=allPlotObjects.size()) |
| 1524 | throw new IllegalArgumentException("Index out of range"); |
| 1525 | setPlotObjectStyle(allPlotObjects.get(index), style); |
| 1526 | } |
| 1527 | |
| 1528 | public void setPlotObjectStyle(int i, String styleString) { |
| 1529 | setStyle(i, styleString); |
no test coverage detected