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

Method isColored

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

Returns whether the plot requires color (not grayscale)

()

Source from the content-addressed store, hash-verified

2050
2051 /** Returns whether the plot requires color (not grayscale) */
2052 boolean isColored() {
2053 for (PlotObject plotObject : allPlotObjects)
2054 if (isColored(plotObject.color) || isColored(plotObject.color2))
2055 return true;
2056 for (PlotObject plotObject : pp.getAllPlotObjects())
2057 if (plotObject != null && (isColored(plotObject.color) || isColored(plotObject.color2)))
2058 return true;
2059 return false;
2060 }
2061
2062 /** Whether a color is non-grayscale, which requires color (not grayscale) for the plot */
2063 boolean isColored(Color c) {

Callers 3

getBlankProcessorMethod · 0.95
addPlotMethod · 0.80
prependPlotMethod · 0.80

Calls 4

getAllPlotObjectsMethod · 0.80
getRedMethod · 0.80
getGreenMethod · 0.80
getBlueMethod · 0.80

Tested by

no test coverage detected