71727374757677
this.seriesList.add(data); } else { // replace an existing series this.seriesList.remove(seriesIndex); this.seriesList.add(seriesIndex, data); } this.notifyListeners(new DatasetChangeEvent(this, this)); }
42434445464748
/** * Notifies all registered listeners that the dataset has changed. */ protected void fireDatasetChanged() { this.notifyListeners(new DatasetChangeEvent(this, this)); }
250251252253254255256257
public void removeSeries(final Comparable seriesKey) { final int seriesIndex = this.indexOf(seriesKey); if (seriesIndex >= 0) { this.seriesKeys.remove(seriesIndex); this.seriesList.remove(seriesIndex); this.notifyListeners(new DatasetChangeEvent(this, this)); } }
17471748174917501751175217531754
public void mapDatasetToDomainAxis(final int index, final int axisIndex) { this.datasetToDomainAxisMap.put(new Integer(index), new Integer( axisIndex)); // fake a dataset change event to update axes... this .datasetChanged(new DatasetChangeEvent(this, this .getDataset(index))); }
17651766176717681769177017711772
public void mapDatasetToRangeAxis(final int index, final int axisIndex) { this.datasetToRangeAxisMap.put(new Integer(index), new Integer( axisIndex)); // fake a dataset change event to update axes... this .datasetChanged(new DatasetChangeEvent(this, this .getDataset(index))); }
18871888188918901891189218931894
if (dataset != null) { dataset.addChangeListener(this); } // send a dataset change event to self... final DatasetChangeEvent event = new DatasetChangeEvent(this, dataset); this.datasetChanged(event); }
23132314231523162317231823192320
*/ public void mapDatasetToDomainAxis(final int index, final int axisIndex) { this.datasetToDomainAxisMap.set(index, new Integer(axisIndex)); // fake a dataset change event to update axes... this .datasetChanged(new DatasetChangeEvent(this, this .getDataset(index))); }
23292330233123322333233423352336
*/ public void mapDatasetToRangeAxis(final int index, final int axisIndex) { this.datasetToRangeAxisMap.set(index, new Integer(axisIndex)); // fake a dataset change event to update axes... this .datasetChanged(new DatasetChangeEvent(this, this .getDataset(index))); }
253425352536253725382539254025412542
673674675676677678679
* <code>includeInterval</code> flag in methods such as * {@link #getDomainBounds(boolean)} makes this unnecessary. */ public void setDomainIsPointsInTime(final boolean flag) { this.domainIsPointsInTime = flag; this.notifyListeners(new DatasetChangeEvent(this, this)); }