List of usage examples for org.jfree.data.time TimeSeries removeChangeListener
public void removeChangeListener(SeriesChangeListener listener)
From source file:edu.dlnu.liuwenpeng.Time.TimeSeriesCollection.java
/** * Removes all the series from the collection and sends a * {@link DatasetChangeEvent} to all registered listeners. *//*from ww w .j a v a2 s . c o m*/ public void removeAllSeries() { // deregister the collection as a change listener to each series in the // collection for (int i = 0; i < this.data.size(); i++) { TimeSeries series = (TimeSeries) this.data.get(i); series.removeChangeListener(this); } // remove all the series from the collection and notify listeners. this.data.clear(); fireDatasetChanged(); }
From source file:utilesChart.util.TimeSeriesCollection.java
/** * Removes all the series from the collection and sends a * {@link DatasetChangeEvent} to all registered listeners. *//*from ww w . j a v a 2 s . c om*/ public void removeAllSeries() { // deregister the collection as a change listener to each series in the // collection for (int i = 0; i < this.data.size(); i++) { TimeSeries series = (TimeSeries) this.data.get(i); series.removeChangeListener(this); } // remove all the series from the collection and notify listeners. this.data.clear(); fireDatasetChanged(); }
From source file:edu.dlnu.liuwenpeng.Time.TimeSeriesCollection.java
/** * Removes the specified series from the collection and sends a * {@link DatasetChangeEvent} to all registered listeners. * //from w ww .ja va 2 s. com * @param series the series (<code>null</code> not permitted). */ public void removeSeries(TimeSeries series) { if (series == null) { throw new IllegalArgumentException("Null 'series' argument."); } this.data.remove(series); series.removeChangeListener(this); fireDatasetChanged(); }
From source file:org.jfree.data.time.TimeSeriesCollection.java
/** * Removes all the series from the collection and sends a * {@link DatasetChangeEvent} to all registered listeners. *//*from w ww .java 2 s . c o m*/ public void removeAllSeries() { // deregister the collection as a change listener to each series in the // collection for (int i = 0; i < this.data.size(); i++) { TimeSeries series = (TimeSeries) this.data.get(i); series.removeChangeListener(this); series.removeVetoableChangeListener(this); } // remove all the series from the collection and notify listeners. this.data.clear(); fireDatasetChanged(); }
From source file:org.jfree.data.time.TimeSeriesCollection.java
/** * 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). *//*w w w . j a v a 2 s. c o m*/ public void removeSeries(TimeSeries series) { ParamChecks.nullNotPermitted(series, "series"); this.data.remove(series); series.removeChangeListener(this); series.removeVetoableChangeListener(this); fireDatasetChanged(); }