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
ConstructorsModifierConstructorDescriptionprotected
Default constructor - allocates storage for listeners that can be registered with the dataset. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(Dataset3DChangeListener listener) Registers an object to receive notification of changes to the dataset.protected void
Sends aDataset3DChangeEvent
to all registered listeners, unless thenotify
flag is set tofalse
in which case this method does nothing.protected void
Notifies all registered listeners that the dataset has changed.boolean
hasListener
(EventListener listener) Returnstrue
if the specified object is registered with the dataset as a listener.boolean
isNotify()
Returns a flag that controls whether or not change events are sent to registered listeners.protected void
Notifies all registered listeners that the dataset has changed, unless thenotify
flag is set tofalse
in which case this method does nothing.void
removeChangeListener
(Dataset3DChangeListener listener) Deregisters an object so that it no longer receives notification of changes to the dataset.void
setNotify
(boolean notify) Sets a flag that controls whether or not listeners receiveDataset3DChangeEvent
notifications.
-
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 receiveDataset3DChangeEvent
notifications.- Parameters:
notify
- a boolean.- See Also:
-
addChangeListener
Registers an object to receive notification of changes to the dataset.- Specified by:
addChangeListener
in 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:
removeChangeListener
in interfaceDataset3D
- Parameters:
listener
- the object to deregister.- See Also:
-
hasListener
Returnstrue
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.- Specified by:
hasListener
in 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 thenotify
flag is set tofalse
in which case this method does nothing.- Parameters:
event
- contains information about the event that triggered the notification.- See Also:
-
fireChangeEvent
Sends aDataset3DChangeEvent
to all registered listeners, unless thenotify
flag is set tofalse
in which case this method does nothing.
-