public class ChartController
extends java.lang.Object
Constructor and Description |
---|
ChartController() |
Modifier and Type | Method and Description |
---|---|
void |
addSeries(float[][] newSeries,
java.lang.String key,
org.jfree.data.xy.XYSeriesCollection dataset,
org.jfree.chart.JFreeChart chart)
Method, called to append a complete Series to A XYSeriesCollection
and update the chart that contains the XYSeriesCollection and show
the updated values
|
void |
showSeries(float[][] newSeries,
java.lang.String key,
org.jfree.data.xy.XYSeriesCollection dataset,
org.jfree.chart.JFreeChart chart)
Method, called to add complete Series to a XYSeriesCollection,
overwriting all previous series, update the chart that contains
the XYSeriesCollection and show the updated values
|
void |
updateChartSeries(float[] newItem,
java.lang.String key,
org.jfree.data.xy.XYSeriesCollection dataset,
org.jfree.chart.JFreeChart chart)
Method, called to add a new Series item into a Series
and update the chart that contains the Series to show
the updated values
|
public void updateChartSeries(float[] newItem, java.lang.String key, org.jfree.data.xy.XYSeriesCollection dataset, org.jfree.chart.JFreeChart chart)
newItem
- the new item to be added to the XYSeries newItem[0] = X , newItem[1] = Ykey
- key of the XYSeries to which the item will be addeddataset
- the XYSeriesCollection that contains the XYSerieschart
- the JFreeChart to be updated (contains the XYSeriesCollection)public void addSeries(float[][] newSeries, java.lang.String key, org.jfree.data.xy.XYSeriesCollection dataset, org.jfree.chart.JFreeChart chart)
newSeries
- all items of a XYSeries (newItem[i][0] = X , newItem[i][1] = Y, of the ith series element)key
- key of the XYSeries to which the item will be addeddataset
- the XYSeriesCollection to add the XYSeries tochart
- the JFreeChart to be updated (contains the XYSeriesCollection)public void showSeries(float[][] newSeries, java.lang.String key, org.jfree.data.xy.XYSeriesCollection dataset, org.jfree.chart.JFreeChart chart)
newSeries
- all items of a XYSeries (newItem[i][0] = X , newItem[i][1] = Y, of the ith series element)key
- key of the XYSeries to which the item will be addeddataset
- the XYSeriesCollection to add the XYSeries tochart
- the JFreeChart to be updated (contains the XYSeriesCollection)