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()
ChartModelgetChartSettings in class ChartModelpublic org.jfree.data.xy.XYSeries getXYSeriesFromXyDataSeries(XyDataSeries xyDataSeries)
xyDataSeries - the XyDataSeriespublic void addSeries(DataSeries series)
ChartModeladdSeries in class ChartModelseries - the seriespublic void exchangeSeries(int seriesIndex,
DataSeries series)
throws NoSuchSeriesException
ChartModelexchangeSeries in class ChartModelseriesIndex - 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)
ChartModelgetSeries in class ChartModelseriesIndex - the series indexpublic org.jfree.data.xy.XYSeries getSeries(java.lang.String seriesLabel)
ChartModelgetSeries in class ChartModelseriesLabel - The labelpublic void removeSeries(int seriesIndex)
ChartModelremoveSeries in class ChartModelseriesIndex - The series indexpublic org.jfree.data.xy.XYSeriesCollection getXySeriesCollection()
public int getSeriesCount()
public void setSeriesLabel(int seriesIndex,
java.lang.String newLabel)
ChartModelsetSeriesLabel in class ChartModelseriesIndex - The series indexnewLabel - The new label