|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
java.lang.Object |
clone()
Returns a clone of 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. |
void |
validateObject()
Validates the object. |
| Methods inherited from class java.lang.Object |
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.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
The cloned dataset will NOT include the DatasetChangeListener references that have
been registered with this dataset.
java.lang.CloneNotSupportedException - if the dataset does not support cloning.
public void validateObject()
throws java.io.InvalidObjectException
validateObject in interface java.io.ObjectInputValidationjava.io.InvalidObjectException - If the object cannot validate itself.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||