trunk/adhoc-internal/src/main/java/org/jfree/data/xy/YIntervalSeriesCollection.java
/**
     * Removes a series from the collection and sends a
     * {@link DatasetChangeEvent} to all registered listeners.
     *
     * @param series  the series index (zero-based).
     *
     * @since 1.0.10
     */
Removes a series from the collection and sends a
DatasetChangeEvent to all registered listeners.

@param series  the series index (zero-based).


Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners . @param series the series index ( zero - based ) .
public void removeSeries(int series) {
        if ((series < 0) || (series >= getSeriesCount())) {
            throw new IllegalArgumentException("Series index out of bounds.");
        }
        YIntervalSeries ts = (YIntervalSeries) this.data.get(series);
        ts.removeChangeListener(this);
        this.data.remove(series);
        fireDatasetChanged();
    }
public void removeSeries ( int series ) { if ( ( series < 0 ) || ( series >= getSeriesCount ( ) ) ) { throw new IllegalArgumentException ( "Series index out of bounds." ) ; } YIntervalSeries ts = ( YIntervalSeries ) this . data . get ( series ) ; ts . removeChangeListener ( this ) ; this . data . remove ( series ) ; fireDatasetChanged ( ) ; }
Removes a series from the collection and sends a
 {@link DatasetChangeEvent} to all registered listeners.
Removes a series from the collection and sends a { @link DatasetChangeEvent } to all registered listeners .