/** * Constructs a dataset and populates it with a single matrix series. * * @param series the time series. */ public MatrixSeriesCollection(MatrixSeries series) { this.seriesList = new java.util.ArrayList(); if (series != null) { this.seriesList.add(series); series.addChangeListener(this); } }
/** * Constructs a dataset and populates it with a single matrix series. * * @param series the time series. */ public MatrixSeriesCollection(MatrixSeries series) { this.seriesList = new java.util.ArrayList(); if (series != null) { this.seriesList.add(series); series.addChangeListener(this); } }
/** * Adds a series to the collection. * <P> * Notifies all registered listeners that the dataset has changed. * </p> * * @param series the series. * * @throws IllegalArgumentException */ public void addSeries(MatrixSeries series) { // check arguments... if (series == null) { throw new IllegalArgumentException("Cannot add null 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(); }
/** * Adds a series to the collection. * <P> * Notifies all registered listeners that the dataset has changed. * </p> * * @param series the series ({@code null} not permitted). */ public void addSeries(MatrixSeries series) { Args.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(); }