Returns whether the plot requires color (not grayscale)
()
| 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) { |
no test coverage detected