org.jfree.data.general
public abstract class AbstractDataset extends Object implements Dataset, Cloneable, Serializable, ObjectInputValidation
Constructor Summary | |
---|---|
protected | AbstractDataset()
Constructs a dataset. |
Method Summary | |
---|---|
void | addChangeListener(DatasetChangeListener listener)
Registers an object to receive notification of changes to the dataset.
|
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(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. |
Parameters: listener the object to register.
See Also: removeChangeListener
Returns: A clone.
Throws: CloneNotSupportedException if the dataset does not support cloning.
See Also: addChangeListener
Returns: The group (never null
).
See Also: setGroup
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.
Parameters: listener the listener.
Returns: A boolean.
See Also: addChangeListener removeChangeListener
Parameters: event contains information about the event that triggered the notification.
See Also: addChangeListener removeChangeListener
Parameters: listener the object to deregister.
See Also: addChangeListener
Parameters: group the group (null
not permitted).
See Also: getGroup
Throws: InvalidObjectException If the object cannot validate itself.