Package org.jfree.data
Class DatasetChangeEvent
java.lang.Object
java.util.EventObject
org.jfree.data.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
-
Constructor Summary
Constructors Constructor Description DatasetChangeEvent(Object source, Dataset data)
Constructs a new event. -
Method Summary
Modifier and Type Method Description Dataset
getDataset()
Returns the dataset that generated the event.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
DatasetChangeEvent
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).
- Parameters:
source
- the source of the event.data
- the dataset that generated the event.
-
-
Method Details
-
getDataset
Returns the dataset that generated the event.- Returns:
- the dataset.
-