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

Method getLastCurveObject

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

Returns a reference to the PlotObject with x & y data (points, curve) added last, or null if none.

()

Source from the content-addressed store, hash-verified

4198
4199 /** Returns a reference to the PlotObject with x & y data (points, curve) added last, or null if none. */
4200 private PlotObject getLastCurveObject() {
4201 for (int i=allPlotObjects.size()-1; i>=0; i--) {
4202 if (allPlotObjects.get(i).type == PlotObject.XY_DATA)
4203 return allPlotObjects.get(i);
4204 }
4205 return null;
4206 }
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() {

Callers 2

addErrorBarsMethod · 0.95

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected