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

Method getDataLabels

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

Returns the labels of the (non-hidden) datasets as linefeed-delimited String. If the label is not set, a blank line is added.

()

Source from the content-addressed store, hash-verified

4230 /** Returns the labels of the (non-hidden) datasets as linefeed-delimited String.
4231 * If the label is not set, a blank line is added. */
4232 String getDataLabels() {
4233 String labels = "";
4234 boolean first = true;
4235 for (PlotObject plotObject : allPlotObjects)
4236 if (plotObject.type == PlotObject.XY_DATA && !plotObject.hasFlag(PlotObject.HIDDEN)) {
4237 if (first)
4238 first = false;
4239 else
4240 labels += '\n';
4241 if (plotObject.label != null) labels += plotObject.label;
4242 }
4243 return labels;
4244 }
4245
4246 /** Creates a ResultsTable with the plot data. Returns an empty table if no data. */
4247 public ResultsTable getResultsTable() {

Callers 2

setupDialogMethod · 0.80
recordMethod · 0.80

Calls 1

hasFlagMethod · 0.65

Tested by

no test coverage detected