List of usage examples for org.jfree.data.xy XYSeries removeVetoableChangeListener
public void removeVetoableChangeListener(VetoableChangeListener listener)
From source file:org.jfree.data.xy.XYSeriesCollection.java
/** * Removes all the series from the collection and sends a * {@link DatasetChangeEvent} to all registered listeners. *//*from w w w . j a va 2 s. c o m*/ public void removeAllSeries() { // Unregister the collection as a change listener to each series in // the collection. for (int i = 0; i < this.data.size(); i++) { XYSeries series = (XYSeries) 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.xy.XYSeriesCollection.java
/** * Removes a series from the collection and sends a * {@link DatasetChangeEvent} to all registered listeners. * * @param series the series (<code>null</code> not permitted). *///from w ww.ja va 2 s. co m public void removeSeries(XYSeries series) { ParamChecks.nullNotPermitted(series, "series"); if (this.data.contains(series)) { series.removeChangeListener(this); series.removeVetoableChangeListener(this); this.data.remove(series); fireDatasetChanged(); } }