| java.lang.Object org.jfree.data.general.AbstractDataset
All known Subclasses: org.jfree.data.general.DefaultValueDataset, org.jfree.data.statistics.DefaultStatisticalCategoryDataset, org.jfree.data.general.DefaultKeyedValueDataset, org.jfree.data.general.DefaultPieDataset, org.jfree.data.category.CategoryToPieDataset, org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset, org.jfree.data.general.WaferMapDataset, org.jfree.data.general.AbstractSeriesDataset, org.jfree.data.category.DefaultCategoryDataset,
AbstractDataset | protected AbstractDataset()(Code) | | Constructs a dataset. By default, the dataset is assigned to its own
group.
|
addChangeListener | public void addChangeListener(DatasetChangeListener listener)(Code) | | Registers an object to receive notification of changes to the dataset.
Parameters: listener - the object to register. |
fireDatasetChanged | protected void fireDatasetChanged()(Code) | | Notifies all registered listeners that the dataset has changed.
|
getGroup | public DatasetGroup getGroup()(Code) | | Returns the dataset group for the dataset.
The group. |
hasListener | public boolean hasListener(EventListener listener)(Code) | | Returns 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. A boolean. |
notifyListeners | protected void notifyListeners(DatasetChangeEvent event)(Code) | | Notifies all registered listeners that the dataset has changed.
Parameters: event - contains information about the event that triggered the notification. |
removeChangeListener | public void removeChangeListener(DatasetChangeListener listener)(Code) | | Deregisters an object so that it no longer receives notification of
changes to the dataset.
Parameters: listener - the object to deregister. |
setGroup | public void setGroup(DatasetGroup group)(Code) | | Sets the dataset group for the dataset.
Parameters: group - the group (null not permitted). |
validateObject | public void validateObject() throws InvalidObjectException(Code) | | Validates the object. We use this opportunity to call listeners who have
registered during the deserialization process, as listeners are not
serialized. This method is called by the serialization system after the
entire graph is read.
This object has registered itself to the system with a priority of 10.
Other callbacks may register with a higher priority number to be called
before this object, or with a lower priority number to be called after
the listeners were notified.
All listeners are supposed to have register by now, either in their
readObject or validateObject methods. Notify them that this dataset has
changed.
exception: InvalidObjectException - If the object cannot validate itself. |
|
|