@Test public void testRemoveSeries() { TimeSeriesCollection c1 = new TimeSeriesCollection(); TimeSeries s1 = new TimeSeries("Series 1"); TimeSeries s2 = new TimeSeries("Series 2"); TimeSeries s3 = new TimeSeries("Series 3"); TimeSeries s4 = new TimeSeries("Series 4"); c1.addSeries(s1); c1.addSeries(s2); c1.addSeries(s3); c1.addSeries(s4); c1.removeSeries(s3); TimeSeries s = c1.getSeries(2); boolean b1 = s.equals(s4); assertTrue(b1); }
public void removeSeries(TimeSeries series) { ParamChecks.nullNotPermitted(series, "series"); this.data.remove(series); series.removeChangeListener(this); series.removeVetoableChangeListener(this); fireDatasetChanged(); }
TimeSeriesCollection extends AbstractIntervalXYDataset implements XYDataset, IntervalXYDataset, DomainInfo, XYDomainInfo,
        XYRangeInfo, VetoableChangeListener, Serializable { public void removeSeries(TimeSeries series) { ParamChecks.nullNotPermitted(series, "series"); this.data.remove(series); series.removeChangeListener(this); series.removeVetoableChangeListener(this); fireDatasetChanged(); } }
TimeSeriesCollection extends AbstractIntervalXYDataset implements XYDataset, IntervalXYDataset, DomainInfo, XYDomainInfo,
        XYRangeInfo, VetoableChangeListener, Serializable { public void removeSeries(TimeSeries series) { ParamChecks.nullNotPermitted(series, "series"); this.data.remove(series); series.removeChangeListener(this); series.removeVetoableChangeListener(this); fireDatasetChanged(); } TimeSeriesCollection();  TimeSeriesCollection(TimeZone zone);  TimeSeriesCollection(TimeSeries series);  TimeSeriesCollection(TimeSeries series, TimeZone zone); }
TimeSeriesCollection extends AbstractIntervalXYDataset implements XYDataset, IntervalXYDataset, DomainInfo, XYDomainInfo,
        XYRangeInfo, VetoableChangeListener, Serializable { public void removeSeries(TimeSeries series) { ParamChecks.nullNotPermitted(series, "series"); this.data.remove(series); series.removeChangeListener(this); series.removeVetoableChangeListener(this); fireDatasetChanged(); } TimeSeriesCollection();  TimeSeriesCollection(TimeZone zone);  TimeSeriesCollection(TimeSeries series);  TimeSeriesCollection(TimeSeries series, TimeZone zone); @Override DomainOrder getDomainOrder(); TimePeriodAnchor getXPosition(); void setXPosition(TimePeriodAnchor anchor); List<TimeSeries> getSeries(); @Override int getSeriesCount(); int indexOf(TimeSeries series); TimeSeries getSeries(int series); TimeSeries getSeries(Comparable key); @Override Comparable getSeriesKey(int series); int getSeriesIndex(Comparable key); void addSeries(TimeSeries series); void removeSeries(TimeSeries series); void removeSeries(int index); void removeAllSeries(); @Override int getItemCount(int series); @Override double getXValue(int series, int item); @Override Number getX(int series, int item); @Override synchronized Number getStartX(int series, int item); @Override synchronized Number getEndX(int series, int item); @Override Number getY(int series, int item); @Override Number getStartY(int series, int item); @Override Number getEndY(int series, int item); int[] getSurroundingItems(int series, long milliseconds); @Override double getDomainLowerBound(boolean includeInterval); @Override double getDomainUpperBound(boolean includeInterval); @Override Range getDomainBounds(boolean includeInterval); @Override Range getDomainBounds(List<Comparable> visibleSeriesKeys,
            boolean includeInterval); Range getRangeBounds(boolean includeInterval); @Override Range getRangeBounds(List<Comparable> visibleSeriesKeys, 
            Range xRange, boolean includeInterval); @Override void vetoableChange(PropertyChangeEvent e); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
TimeSeriesCollection extends AbstractIntervalXYDataset implements XYDataset, IntervalXYDataset, DomainInfo, XYDomainInfo,
        XYRangeInfo, VetoableChangeListener, Serializable { public void removeSeries(TimeSeries series) { ParamChecks.nullNotPermitted(series, "series"); this.data.remove(series); series.removeChangeListener(this); series.removeVetoableChangeListener(this); fireDatasetChanged(); } TimeSeriesCollection();  TimeSeriesCollection(TimeZone zone);  TimeSeriesCollection(TimeSeries series);  TimeSeriesCollection(TimeSeries series, TimeZone zone); @Override DomainOrder getDomainOrder(); TimePeriodAnchor getXPosition(); void setXPosition(TimePeriodAnchor anchor); List<TimeSeries> getSeries(); @Override int getSeriesCount(); int indexOf(TimeSeries series); TimeSeries getSeries(int series); TimeSeries getSeries(Comparable key); @Override Comparable getSeriesKey(int series); int getSeriesIndex(Comparable key); void addSeries(TimeSeries series); void removeSeries(TimeSeries series); void removeSeries(int index); void removeAllSeries(); @Override int getItemCount(int series); @Override double getXValue(int series, int item); @Override Number getX(int series, int item); @Override synchronized Number getStartX(int series, int item); @Override synchronized Number getEndX(int series, int item); @Override Number getY(int series, int item); @Override Number getStartY(int series, int item); @Override Number getEndY(int series, int item); int[] getSurroundingItems(int series, long milliseconds); @Override double getDomainLowerBound(boolean includeInterval); @Override double getDomainUpperBound(boolean includeInterval); @Override Range getDomainBounds(boolean includeInterval); @Override Range getDomainBounds(List<Comparable> visibleSeriesKeys,
            boolean includeInterval); Range getRangeBounds(boolean includeInterval); @Override Range getRangeBounds(List<Comparable> visibleSeriesKeys, 
            Range xRange, boolean includeInterval); @Override void vetoableChange(PropertyChangeEvent e); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }