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

Method getLabel

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

Gets the label String of the xLabel ('x'), yLabel('y') or the legend ('l'). Returns null if the given PlotObject does not exist or its label is null

(char c)

Source from the content-addressed store, hash-verified

1337 /** Gets the label String of the xLabel ('x'), yLabel('y') or the legend ('l').
1338 * Returns null if the given PlotObject does not exist or its label is null */
1339 public String getLabel(char c) {
1340 PlotObject plotObject = pp.getPlotObject(c);
1341 if (plotObject != null)
1342 return plotObject.label;
1343 else
1344 return null;
1345 }
1346
1347 /** Gets the flags of the xLabel ('x'), yLabel('y') or the legend ('l').
1348 * Returns -1 if the given PlotObject does not exist */

Callers 2

labelsInBracesMethod · 0.95
addToListsMethod · 0.95

Calls 1

getPlotObjectMethod · 0.80

Tested by

no test coverage detected