/**
* Adds a series to the collection and sends a {@link DatasetChangeEvent} to
* all registered listeners.
*
* @param series the series (<code>null</code> not permitted).
*/
/**
* Adds a series to the collection. A
* {@link org.jfree.data.general.DatasetChangeEvent} is sent to all
* registered listeners.
*
* @param series the time series.
*/
public void addSeries( [[#variable1a99a280]] series) {
if (series == null) {
throw new IllegalArgumentException("Null \'series\' argument.");
}
this.data.add(series);
series.addChangeListener(this );
fireDatasetChanged();
}
/**
* Removes the specified series from the collection and sends a
* {@link DatasetChangeEvent} to all registered listeners.
*
* @param series the series (<code>null</code> not permitted).
*/
/**
* Removes the specified series from the collection.
*
* @param series the series to remove (<code>null</code> not permitted).
*/
public void removeSeries( [[#variable1a99a280]] series) {
if (series == null) {
throw new IllegalArgumentException("Null \'series\' argument.");
}
this.data.remove(series);
series.removeChangeListener(this );
fireDatasetChanged();
}
/**
* Removes a series from the collection.
*
* @param index the series index (zero-based).
*/
public void removeSeries(int index) {
[[#variable1a99a280]] series = getSeries(index);
if (series != null) {
removeSeries(series);
}
}
|