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

Method getResultLabel

ij/src/main/java/ij/macro/Functions.java:1399–1412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1397 }
1398
1399 String getResultLabel() {
1400 int row = (int)getArg();
1401 ResultsTable rt = getResultsTable(true);
1402 int counter = rt.size();
1403 if (row<0 || row>=counter)
1404 interp.error("Row ("+row+") out of range");
1405 String label = rt.getLabel(row);
1406 if (label!=null)
1407 return label;
1408 else {
1409 label = rt.getStringValue("Label", row);
1410 return label!=null?label:"";
1411 }
1412 }
1413
1414 @AstroImageJ(reason = "Support MeasurementsWindow", modified = true)
1415 private ResultsTable getResultsTable(boolean reportErrors) {

Callers 1

getStringFunctionMethod · 0.95

Calls 6

getArgMethod · 0.95
getResultsTableMethod · 0.95
sizeMethod · 0.95
getLabelMethod · 0.95
getStringValueMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected