returns whether there are several plots so that one cannot give a single y value for a given x value
()
| 4207 | |
| 4208 | /** returns whether there are several plots so that one cannot give a single y value for a given x value */ |
| 4209 | private boolean hasMultiplePlots() { |
| 4210 | int nPlots = 0; |
| 4211 | for (PlotObject plotObject : allPlotObjects) { |
| 4212 | if (plotObject.type == PlotObject.ARROWS) |
| 4213 | return true; |
| 4214 | else if (plotObject.type == PlotObject.XY_DATA) { |
| 4215 | nPlots ++; |
| 4216 | if (nPlots > 1) return true; |
| 4217 | } |
| 4218 | } |
| 4219 | return nPlots > 1; |
| 4220 | } |
| 4221 | |
| 4222 | public void setPlotMaker(PlotMaker plotMaker) { |
| 4223 | this.plotMaker = plotMaker; |