public interface ChartModel
ChartModel
consists of a collection of
DataSample
s. A ChartView
plots these data
samples graphically.ChartView
Modifier and Type | Method and Description |
---|---|
void |
addChartModelListener(ChartModelListener listener)
Add a
ChartModelListener to this model's list of listeners. |
void |
addDataSample(DataSample ds)
Add a data sample to this model.
|
void |
clear()
Remove all data samples from this model.
|
DataSample |
getDataSample(int index)
Get the data sample at the specified index.
|
int |
getDataSampleCount()
Get the number of data samples in this model.
|
Enumeration |
getDataSamples()
Get all of the data samples in this model.
|
void |
removeChartModelListener(ChartModelListener listener)
Remove a
ChartModelListener from this model's list of
listeners. |
void |
removeDataSample(int index)
Remove the data sample at the specified index from this model.
|
void addChartModelListener(ChartModelListener listener)
ChartModelListener
to this model's list of listeners.listener
- The listener to add.void removeChartModelListener(ChartModelListener listener)
ChartModelListener
from this model's list of
listeners.listener
- The listener to remove.int getDataSampleCount()
DataSample getDataSample(int index)
index
- The index of the desired data sample.DataSample
at the specified index, or
null
if there is no data sample at that index.Enumeration getDataSamples()
Enumeration
of the DataSample
objects in this model.void addDataSample(DataSample ds)
ds
- The data sample to add.void removeDataSample(int index)
index
- The index of the data sample to remove.void clear()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses