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

Method setColor

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

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)

Source from the content-addressed store, hash-verified

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

Callers 6

plotHistogramMethod · 0.95
getPlotMethod · 0.95
multiPlotMethod · 0.95
getPlotMethod · 0.95
runMethod · 0.95
updatePlotMethod · 0.95

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected