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()
OntologyModel
getChartSettings
in class OntologyModel
public XyChart getXyChart()
public jade.util.leap.List getSeriesData(int seriesIndex) throws NoSuchSeriesException
OntologyModel
getSeriesData
in class OntologyModel
seriesIndex
- The series indexNoSuchSeriesException
- Thrown if there is no series with the specified indexpublic void addSeries(DataSeries series)
OntologyModel
addSeries
in class OntologyModel
series
- the seriespublic void exchangeSeries(int seriesIndex, DataSeries dataSeries) throws NoSuchSeriesException
OntologyModel
exchangeSeries
in class OntologyModel
seriesIndex
- the series indexdataSeries
- the data seriesNoSuchSeriesException
- the no such series exceptionpublic void removeSeries(int seriesIndex) throws NoSuchSeriesException
OntologyModel
removeSeries
in class OntologyModel
seriesIndex
- the series indexNoSuchSeriesException
- the no such series exceptionpublic XyDataSeries getSeries(int seriesIndex) throws NoSuchSeriesException
OntologyModel
getSeries
in class OntologyModel
seriesIndex
- the series indexNoSuchSeriesException
- the no such series exceptionpublic XyValuePair getXyValuePair(int seriesIndex, int indexPosition)
seriesIndex
- the series indexindexPosition
- the index positionpublic int getSeriesCount()
OntologyModel
getSeriesCount
in class OntologyModel
public jade.util.leap.List getChartData()
OntologyModel
getChartData
in class OntologyModel
public 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