public class XyOntologyModel extends OntologyModel
| Constructor and Description |
|---|
XyOntologyModel(XyChart chart,
XyDataModel parent)
Instantiates a new xy ontology model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSeries(DataSeries series)
Adds a data series.
|
void |
addXyValuePair(int seriesIndex,
int indexPosition,
float newXValue,
float newYValue)
Adds the specified values as XyValuePair to the specified position.
|
void |
addXyValuePair(int seriesIndex,
int indexPosition,
XyValuePair xyValuePair)
Adds the specified values as XyValuePair to the specified position.
|
void |
exchangeSeries(int seriesIndex,
DataSeries dataSeries)
Exchange data series.
|
jade.util.leap.List |
getChartData()
Gets the chart data.
|
ChartSettingsGeneral |
getChartSettings()
Gets the chart settings for this chart.
|
XyDataSeries |
getSeries(int seriesIndex)
Gets the data series.
|
int |
getSeriesCount()
Gets the number of current data series.
|
jade.util.leap.List |
getSeriesData(int seriesIndex)
Gets the list of value pairs for the data series with the specified index.
|
XyChart |
getXyChart()
Gets the xy chart.
|
XyValuePair |
getXyValuePair(int seriesIndex,
int indexPosition)
Returns the specified XyValuePair.
|
void |
removeSeries(int seriesIndex)
Removes a data series.
|
XyValuePair |
removeXyValuePair(int seriesIndex,
int indexPosition)
Removes the specified XyValuePair from a series.
|
void |
updateXyValuePair(int seriesIndex,
int indexPosition,
float newXValue,
float newYValue)
Updates the specified XyValuePair with the given value.
|
public XyOntologyModel(XyChart chart, XyDataModel parent)
chart - the chartparent - the parentpublic ChartSettingsGeneral getChartSettings()
OntologyModelgetChartSettings in class OntologyModelpublic XyChart getXyChart()
public jade.util.leap.List getSeriesData(int seriesIndex)
throws NoSuchSeriesException
OntologyModelgetSeriesData in class OntologyModelseriesIndex - The series indexNoSuchSeriesException - Thrown if there is no series with the specified indexpublic void addSeries(DataSeries series)
OntologyModeladdSeries in class OntologyModelseries - the seriespublic void exchangeSeries(int seriesIndex,
DataSeries dataSeries)
throws NoSuchSeriesException
OntologyModelexchangeSeries in class OntologyModelseriesIndex - the series indexdataSeries - the data seriesNoSuchSeriesException - the no such series exceptionpublic void removeSeries(int seriesIndex)
throws NoSuchSeriesException
OntologyModelremoveSeries in class OntologyModelseriesIndex - the series indexNoSuchSeriesException - the no such series exceptionpublic XyDataSeries getSeries(int seriesIndex) throws NoSuchSeriesException
OntologyModelgetSeries in class OntologyModelseriesIndex - the series indexNoSuchSeriesException - the no such series exceptionpublic XyValuePair getXyValuePair(int seriesIndex, int indexPosition)
seriesIndex - the series indexindexPosition - the index positionpublic int getSeriesCount()
OntologyModelgetSeriesCount in class OntologyModelpublic jade.util.leap.List getChartData()
OntologyModelgetChartData in class OntologyModelpublic void addXyValuePair(int seriesIndex,
int indexPosition,
float newXValue,
float newYValue)
seriesIndex - the series indexindexPosition - the index positionnewXValue - the new x valuenewYValue - the new y valuepublic void addXyValuePair(int seriesIndex,
int indexPosition,
XyValuePair xyValuePair)
seriesIndex - the series indexindexPosition - the index positionxyValuePair - the xy value pairpublic void updateXyValuePair(int seriesIndex,
int indexPosition,
float newXValue,
float newYValue)
seriesIndex - the series indexindexPosition - the index positionnewXValue - the new x valuenewYValue - the new y valuepublic XyValuePair removeXyValuePair(int seriesIndex, int indexPosition)
seriesIndex - the series indexindexPosition - the index position