org.jfree.data.general
Class DatasetChangeEvent
java.util.EventObjectorg.jfree.data.general.DatasetChangeEvent
extends java.util.EventObject
A change event that encapsulates information about a change to a dataset.
DatasetChangeEvent
public DatasetChangeEvent(Object source,
Dataset dataset) Constructs a new event. The source is either the dataset or the
Plot class. The dataset can be
null (in this case the source will be the
Plot class).
source - the source of the event.dataset - the dataset that generated the event (null
permitted).
getDataset
public Dataset getDataset()
Returns the dataset that generated the event. Note that the dataset
may be null since adding a null dataset to a
plot will generated a change event.
- The dataset (possibly
null).