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

Method hasMultiplePlots

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

returns whether there are several plots so that one cannot give a single y value for a given x value

()

Source from the content-addressed store, hash-verified

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;

Callers 1

getCoordinatesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected