|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.general.AbstractDataset
public abstract class 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. |
boolean |
hasListener(java.util.EventListener listener)
Returns true if the specified object is registered with
the dataset as a listener. |
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()
| Method Detail |
|---|
public DatasetGroup getGroup()
getGroup in interface Datasetpublic void setGroup(DatasetGroup group)
setGroup in interface Datasetgroup - the group (null not permitted).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.public boolean hasListener(java.util.EventListener listener)
true if the specified object is registered with
the dataset as a listener. Most applications won't need to call this
method, it exists mainly for use by unit testing code.
listener - the listener.
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
DatasetChangeListener references that have been registered with
this dataset.
clone in class java.lang.Objectjava.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 | |||||||||