public abstract class ChartModel
extends java.util.Observable
Modifier and Type | Class and Description |
---|---|
static class |
ChartModel.EventType
Chart Model event types
|
Constructor and Description |
---|
ChartModel() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addSeries(DataSeries series)
Adds the series.
|
abstract void |
exchangeSeries(int seriesIndex,
DataSeries series)
Exchanges the series specified by the series index with the given DataSeries.
|
abstract ChartSettingsGeneral |
getChartSettings()
Returns the chart settings.
|
abstract org.jfree.data.general.Series |
getSeries(int seriesIndex)
Returns the jfreeChart series specified by the index position.
|
abstract org.jfree.data.general.Series |
getSeries(java.lang.String seriesLabel)
Returns the jfreeChart series with the specified label.
|
abstract void |
removeSeries(int seriesIndex)
Removes the data series with the given index from the chart model
|
abstract void |
setSeriesLabel(int seriesIndex,
java.lang.String newLabel)
Sets a new label for the series with the specified index
|
public abstract ChartSettingsGeneral getChartSettings()
public abstract org.jfree.data.general.Series getSeries(int seriesIndex)
seriesIndex
- the series indexpublic abstract org.jfree.data.general.Series getSeries(java.lang.String seriesLabel)
seriesLabel
- The labelpublic abstract void addSeries(DataSeries series)
series
- the seriespublic abstract void removeSeries(int seriesIndex)
seriesIndex
- The series indexpublic abstract void setSeriesLabel(int seriesIndex, java.lang.String newLabel)
seriesIndex
- The series indexnewLabel
- The new labelpublic abstract void exchangeSeries(int seriesIndex, DataSeries series) throws NoSuchSeriesException
seriesIndex
- the series indexseries
- the DataSeriesNoSuchSeriesException
- the no such series exception