java.lang.Object
org.jfree.chart3d.data.AbstractDataset3D
- All Implemented Interfaces:
Dataset3D
- Direct Known Subclasses:
StandardCategoryDataset3D,StandardPieDataset3D,XYZSeriesCollection
A base class that can be used to create new dataset classes.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor - allocates storage for listeners that can be registered with the dataset. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(Dataset3DChangeListener listener) Registers an object to receive notification of changes to the dataset.protected voidSends aDataset3DChangeEventto all registered listeners, unless thenotifyflag is set tofalsein which case this method does nothing.protected voidNotifies all registered listeners that the dataset has changed.booleanhasListener(EventListener listener) Returnstrueif the specified object is registered with the dataset as a listener.booleanisNotify()Returns a flag that controls whether or not change events are sent to registered listeners.protected voidNotifies all registered listeners that the dataset has changed, unless thenotifyflag is set tofalsein which case this method does nothing.voidremoveChangeListener(Dataset3DChangeListener listener) Deregisters an object so that it no longer receives notification of changes to the dataset.voidsetNotify(boolean notify) Sets a flag that controls whether or not listeners receiveDataset3DChangeEventnotifications.
-
Constructor Details
-
AbstractDataset3D
protected AbstractDataset3D()Default constructor - allocates storage for listeners that can be registered with the dataset.
-
-
Method Details
-
isNotify
Returns a flag that controls whether or not change events are sent to registered listeners.- Returns:
- A boolean.
- See Also:
-
setNotify
Sets a flag that controls whether or not listeners receiveDataset3DChangeEventnotifications.- Parameters:
notify- a boolean.- See Also:
-
addChangeListener
Registers an object to receive notification of changes to the dataset.- Specified by:
addChangeListenerin interfaceDataset3D- Parameters:
listener- the object to register.- See Also:
-
removeChangeListener
Deregisters an object so that it no longer receives notification of changes to the dataset.- Specified by:
removeChangeListenerin interfaceDataset3D- Parameters:
listener- the object to deregister.- See Also:
-
hasListener
Returnstrueif 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.- Specified by:
hasListenerin interfaceDataset3D- Parameters:
listener- the listener.- Returns:
- A boolean.
- See Also:
-
fireDatasetChanged
Notifies all registered listeners that the dataset has changed.- See Also:
-
notifyListeners
Notifies all registered listeners that the dataset has changed, unless thenotifyflag is set tofalsein which case this method does nothing.- Parameters:
event- contains information about the event that triggered the notification.- See Also:
-
fireChangeEvent
Sends aDataset3DChangeEventto all registered listeners, unless thenotifyflag is set tofalsein which case this method does nothing.
-