public class XyChartModel extends ChartModel
ChartModel.EventType
Constructor and Description |
---|
XyChartModel(XyDataModel parent)
Instantiates a new XYChartModel.
|
Modifier and Type | Method and Description |
---|---|
void |
addSeries(DataSeries series)
Adds the series.
|
void |
addXyDataItem(int seriesIndex,
int indexPosition,
float newXValue,
float newYValue)
Adds the specified values as XYDataItem to the specified position.
|
void |
exchangeSeries(int seriesIndex,
DataSeries series)
Exchanges the series specified by the series index with the given DataSeries.
|
XySeriesChartSettings |
getChartSettings()
Returns the chart settings.
|
org.jfree.data.xy.XYSeries |
getSeries(int seriesIndex)
Returns the jfreeChart series specified by the index position.
|
org.jfree.data.xy.XYSeries |
getSeries(java.lang.String seriesLabel)
Returns the jfreeChart series with the specified label.
|
int |
getSeriesCount()
Returns the number of series in this chart.
|
org.jfree.data.xy.XYDataItem |
getXYDataItem(int seriesIndex,
int indexPosition)
Returns the XYDataItem.
|
org.jfree.data.xy.XYSeriesCollection |
getXySeriesCollection()
Gets the JFreeChart data model for this chart
|
org.jfree.data.xy.XYSeries |
getXYSeriesFromXyDataSeries(XyDataSeries xyDataSeries)
Converts and returns a XYSeries from a XyDataSeries.
|
void |
removeSeries(int seriesIndex)
Removes the data series with the given index from the chart model
|
void |
setSeriesLabel(int seriesIndex,
java.lang.String newLabel)
Sets a new label for the series with the specified index
|
void |
setXYSeriesAccordingToOntologyModel(int seriesIndex)
Sets a XY series according to the ontology model.
|
public XyChartModel(XyDataModel parent)
parent
- the current XyDataModelpublic XySeriesChartSettings getChartSettings()
ChartModel
getChartSettings
in class ChartModel
public org.jfree.data.xy.XYSeries getXYSeriesFromXyDataSeries(XyDataSeries xyDataSeries)
xyDataSeries
- the XyDataSeriespublic void addSeries(DataSeries series)
ChartModel
addSeries
in class ChartModel
series
- the seriespublic void exchangeSeries(int seriesIndex, DataSeries series) throws NoSuchSeriesException
ChartModel
exchangeSeries
in class ChartModel
seriesIndex
- the series indexseries
- the DataSeriesNoSuchSeriesException
- the no such series exceptionpublic void setXYSeriesAccordingToOntologyModel(int seriesIndex)
public org.jfree.data.xy.XYDataItem getXYDataItem(int seriesIndex, int indexPosition)
seriesIndex
- the series indexindexPosition
- the index positionpublic void addXyDataItem(int seriesIndex, int indexPosition, float newXValue, float newYValue)
seriesIndex
- the series indexindexPosition
- the index positionnewXValue
- the new x valuenewYValue
- the new y valuepublic org.jfree.data.xy.XYSeries getSeries(int seriesIndex)
ChartModel
getSeries
in class ChartModel
seriesIndex
- the series indexpublic org.jfree.data.xy.XYSeries getSeries(java.lang.String seriesLabel)
ChartModel
getSeries
in class ChartModel
seriesLabel
- The labelpublic void removeSeries(int seriesIndex)
ChartModel
removeSeries
in class ChartModel
seriesIndex
- The series indexpublic org.jfree.data.xy.XYSeriesCollection getXySeriesCollection()
public int getSeriesCount()
public void setSeriesLabel(int seriesIndex, java.lang.String newLabel)
ChartModel
setSeriesLabel
in class ChartModel
seriesIndex
- The series indexnewLabel
- The new label