MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / setStyle

Method setStyle

ij/src/main/java/ij/gui/Plot.java:1522–1526  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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);

Callers 4

doPlotMethod · 0.95
getPlotMethod · 0.95
setPlotObjectStyleMethod · 0.95
getRoiMethod · 0.45

Calls 3

setPlotObjectStyleMethod · 0.95
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected