List of usage examples for org.jfree.data.xy MatrixSeries addChangeListener
public void addChangeListener(SeriesChangeListener listener)
From source file:org.jfree.data.xy.MatrixSeriesCollection.java
/** * Constructs a dataset and populates it with a single matrix series. * * @param series the time series.//from w ww . j a v a2 s . c o m */ public MatrixSeriesCollection(MatrixSeries series) { this.seriesList = new java.util.ArrayList(); if (series != null) { this.seriesList.add(series); series.addChangeListener(this); } }
From source file:org.jfree.data.xy.MatrixSeriesCollection.java
/** * Adds a series to the collection./* ww w . j a va 2s.c o m*/ * <P> * Notifies all registered listeners that the dataset has changed. * </p> * * @param series the series (<code>null</code> not permitted). */ public void addSeries(MatrixSeries series) { ParamChecks.nullNotPermitted(series, "series"); // FIXME: Check that there isn't already a series with the same key // add the series... this.seriesList.add(series); series.addChangeListener(this); fireDatasetChanged(); }