- java.lang.Object
-
- java.util.EventObject
-
- org.jfree.data.general.DatasetChangeEvent
-
- All Implemented Interfaces:
Serializable
public class DatasetChangeEvent extends EventObject
A change event that encapsulates information about a change to a dataset.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description DatasetChangeEvent(Object source, Dataset dataset)Constructs a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatasetgetDataset()Returns the dataset that generated the event.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
DatasetChangeEvent
public DatasetChangeEvent(Object source, Dataset dataset)
Constructs a new event. The source is either the dataset or thePlotclass. The dataset can benull(in this case the source will be thePlotclass).- Parameters:
source- the source of the event.dataset- the dataset that generated the event (nullpermitted).
-
-
Method Detail
-
getDataset
public Dataset getDataset()
Returns the dataset that generated the event. Note that the dataset may benullsince adding anulldataset to a plot will generated a change event.- Returns:
- The dataset (possibly
null).
-
-