- All Known Subinterfaces:
CategoryDataset3D<S,,R, C> PieDataset3D<K>,XYZDataset<S>
- All Known Implementing Classes:
AbstractDataset3D,StandardCategoryDataset3D,StandardPieDataset3D,XYZSeriesCollection
public interface Dataset3D
The base interface for datasets in Orson Charts. All datasets must support
the change event notification mechanism. The idea is that when a dataset
is changed, an event is passed to the plot. The plot can react to this
event, then pass on the change event to the chart. The chart in turn will
pass on the event and this can result in the chart being repainted (for
example, if the chart is displayed in a
Chart3DPanel).-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(Dataset3DChangeListener listener) Registers a change listener to receive notification of changes to the dataset.booleanhasListener(EventListener listener) Returnstrueif the specified listener is registered with the dataset, andfalseotherwise.voidremoveChangeListener(Dataset3DChangeListener listener) De-registers a change listener so that it no longer receives notification of changes to the dataset.
-
Method Details
-
addChangeListener
Registers a change listener to receive notification of changes to the dataset.- Parameters:
listener- the listener (nullnot permitted).
-
removeChangeListener
De-registers a change listener so that it no longer receives notification of changes to the dataset.- Parameters:
listener- the listener (nullnot permitted).
-
hasListener
Returnstrueif the specified listener is registered with the dataset, andfalseotherwise. This method is used for unit testing to confirm that listeners are removed correctly following dataset switches.- Parameters:
listener- the listener.- Returns:
- A boolean.
-