jadex.application.space.envsupport.evaluation
Class XYChartDataConsumer

java.lang.Object
  extended by jadex.commons.SimplePropertyObject
      extended by jadex.application.space.envsupport.evaluation.AbstractChartDataConsumer
          extended by jadex.application.space.envsupport.evaluation.XYChartDataConsumer
All Implemented Interfaces:
ITableDataConsumer, IPropertyObject

public class XYChartDataConsumer
extends AbstractChartDataConsumer

Create a X/Y chart consumer, x an y must be double values.


Field Summary
protected  Map seriesmap
          The series map.
 
Fields inherited from class jadex.application.space.envsupport.evaluation.AbstractChartDataConsumer
chart
 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
 
Constructor Summary
XYChartDataConsumer()
          Create a new chart consumer.
 
Method Summary
protected  void addValue(Comparable seriesname, Object valx, Object valy, DataTable data, Object[] row)
          Add a value to a specific series of the chart.
protected  org.jfree.chart.JFreeChart createChart()
          Create a chart with the underlying dataset.
 
Methods inherited from class jadex.application.space.envsupport.evaluation.AbstractChartDataConsumer
consumeData, getChart, getChartPanel, getResourceInfo, getSpace, getTableDataProvider, getValues, refresh
 
Methods inherited from class jadex.commons.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty
 

Field Detail

seriesmap

protected Map seriesmap
The series map.

Constructor Detail

XYChartDataConsumer

public XYChartDataConsumer()
Create a new chart consumer.

Method Detail

createChart

protected org.jfree.chart.JFreeChart createChart()
Create a chart with the underlying dataset.

Specified by:
createChart in class AbstractChartDataConsumer
Returns:
The chart.

addValue

protected void addValue(Comparable seriesname,
                        Object valx,
                        Object valy,
                        DataTable data,
                        Object[] row)
Add a value to a specific series of the chart.

Specified by:
addValue in class AbstractChartDataConsumer
Parameters:
seriesname - The series name.
valx - The x value.
valy - The y value.
data - The data table.
row - The current data row.


Copyright © 2010. All Rights Reserved.