Adds some data points to this plot. @param datapoints The data points to plot. @param options The options to apply to this specific series.
(final DataPoints datapoints,
final String options)
| 172 | * @param options The options to apply to this specific series. |
| 173 | */ |
| 174 | public void add(final DataPoints datapoints, |
| 175 | final String options) { |
| 176 | // Technically, we could check the number of data points in the |
| 177 | // datapoints argument in order to do something when there are none, but |
| 178 | // this is potentially expensive with a SpanGroup since it requires |
| 179 | // iterating through the entire SpanGroup. We'll check this later |
| 180 | // when we're trying to use the data, in order to avoid multiple passes |
| 181 | // through the entire data. |
| 182 | this.datapoints.add(datapoints); |
| 183 | this.options.add(options); |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Returns a view on the datapoints in this plot. |
no outgoing calls