Returns the labels of the (non-hidden) datasets as linefeed-delimited String. If the label is not set, a blank line is added.
()
| 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() { |
no test coverage detected