|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jfree.data.AbstractDataset
An abstract implementation of the Dataset interface, containing a mechanism
for registering change listeners.
| Constructor Summary | |
protected |
AbstractDataset()
Constructs a dataset. |
| Method Summary | |
void |
addChangeListener(DatasetChangeListener listener)
Registers an object to receive notification of changes to the dataset. |
protected void |
fireDatasetChanged()
Notifies all registered listeners that the dataset has changed. |
DatasetGroup |
getGroup()
Returns the dataset group for the dataset. |
protected void |
notifyListeners(DatasetChangeEvent event)
Notifies all registered listeners that the dataset has changed. |
void |
removeChangeListener(DatasetChangeListener listener)
Deregisters an object so that it no longer receives notification of changes to the dataset. |
void |
setGroup(DatasetGroup group)
Sets the dataset group for the dataset. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbstractDataset()
By default, the dataset is assigned to its own group.
| Method Detail |
public DatasetGroup getGroup()
getGroup in interface Datasetpublic void setGroup(DatasetGroup group)
setGroup in interface Datasetgroup - the dataset group.public void addChangeListener(DatasetChangeListener listener)
addChangeListener in interface Datasetlistener - the object to register.public void removeChangeListener(DatasetChangeListener listener)
removeChangeListener in interface Datasetlistener - the object to deregister.protected void fireDatasetChanged()
protected void notifyListeners(DatasetChangeEvent event)
event - contains information about the event that triggered the notification.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||