org.ow2.clif.analyze.lib.graph
Class ChartData

java.lang.Object
  extended by org.ow2.clif.analyze.lib.graph.ChartData

public class ChartData
extends java.lang.Object

ChartData class : contains all the method to create a chart

Author:
Olivier LIU

Constructor Summary
ChartData(int chartDataId, int pageIndex)
           
 
Method Summary
 org.jfree.data.xy.XYDataset createDataset(double[] xValues, double[] yValues, java.lang.String key)
          Get dataset matching the values
 org.jfree.chart.JFreeChart createMultipleChart(java.lang.String XField, java.lang.String YField, java.util.List<StatisticDataImpl> sdiList, int datasetId, java.lang.String chartType, int timeWindow, int step, int maxPoints, int timeStart, int timeEnd)
          Create chart with multiple line charts
 org.jfree.chart.JFreeChart createSimpleChart(java.lang.String XField, java.lang.String YField, StatisticDataImpl sdi, int datasetId, java.lang.String chartType, int timeWindow, int step, int maxPointsToDisplay, int timeStart, int timeEnd)
          Simple JFreeChart
 java.util.List<java.lang.Integer> getAllDatasetId()
          Get all the dataset ids used in this chart
 org.jfree.chart.JFreeChart getJfChart()
          Get the jfreechart
 java.util.List<java.lang.Integer> getSeriesIndex()
          Get all the indexes use for the chart
 org.jfree.data.xy.XYDataset getXyDataset()
          Get XYdataset
 org.jfree.chart.JFreeChart removeDatasetFromTab(int keyDataset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartData

public ChartData(int chartDataId,
                 int pageIndex)
Method Detail

createSimpleChart

public org.jfree.chart.JFreeChart createSimpleChart(java.lang.String XField,
                                                    java.lang.String YField,
                                                    StatisticDataImpl sdi,
                                                    int datasetId,
                                                    java.lang.String chartType,
                                                    int timeWindow,
                                                    int step,
                                                    int maxPointsToDisplay,
                                                    int timeStart,
                                                    int timeEnd)
Simple JFreeChart


createMultipleChart

public org.jfree.chart.JFreeChart createMultipleChart(java.lang.String XField,
                                                      java.lang.String YField,
                                                      java.util.List<StatisticDataImpl> sdiList,
                                                      int datasetId,
                                                      java.lang.String chartType,
                                                      int timeWindow,
                                                      int step,
                                                      int maxPoints,
                                                      int timeStart,
                                                      int timeEnd)
Create chart with multiple line charts


createDataset

public org.jfree.data.xy.XYDataset createDataset(double[] xValues,
                                                 double[] yValues,
                                                 java.lang.String key)
Get dataset matching the values


getXyDataset

public org.jfree.data.xy.XYDataset getXyDataset()
Get XYdataset

Returns:
XYDataset

getJfChart

public org.jfree.chart.JFreeChart getJfChart()
Get the jfreechart

Returns:
Jfreechart

getSeriesIndex

public java.util.List<java.lang.Integer> getSeriesIndex()
Get all the indexes use for the chart

Returns:
list of indexes use for the chart

removeDatasetFromTab

public org.jfree.chart.JFreeChart removeDatasetFromTab(int keyDataset)

getAllDatasetId

public java.util.List<java.lang.Integer> getAllDatasetId()
Get all the dataset ids used in this chart

Returns:
all dataset ids