public class

DatasetChangeEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.jfree.data.general.DatasetChangeEvent

Class Overview

A change event that encapsulates information about a change to a dataset.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
DatasetChangeEvent(Object source, Dataset dataset)
Constructs a new event.
Public Methods
Dataset getDataset()
Returns the dataset that generated the event.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Public Constructors

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).

Parameters
source the source of the event.
dataset the dataset that generated the event (null permitted).

Public Methods

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.

Returns
  • The dataset (possibly null).