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

Method getMainCurveObject

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

Returns a reference to the PlotObject having the data passed with the constructor or (if that was null) the first x & y data added later. Otherwise returns null.

()

Source from the content-addressed store, hash-verified

4189 /** Returns a reference to the PlotObject having the data passed with the constructor or (if that was null)
4190 * the first x & y data added later. Otherwise returns null. */
4191 private PlotObject getMainCurveObject() {
4192 for (PlotObject plotObject : allPlotObjects) {
4193 if (plotObject.type == PlotObject.XY_DATA)
4194 return plotObject;
4195 }
4196 return null;
4197 }
4198
4199 /** Returns a reference to the PlotObject with x & y data (points, curve) added last, or null if none. */
4200 private PlotObject getLastCurveObject() {

Callers 4

getXValuesMethod · 0.95
getYValuesMethod · 0.95
showMethod · 0.95
getCoordinatesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected