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