jadex.application.space.envsupport.evaluation
Class TimeChartDataConsumer

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

public class TimeChartDataConsumer
extends AbstractChartDataConsumer

Time chart data consumer. Y is interpreted as time point.


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
TimeChartDataConsumer()
          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

TimeChartDataConsumer

public TimeChartDataConsumer()
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:
valx - The x value.
valy - The y value.
data - The data table.
row - The current data row.
seriesname - The seriesname.


Copyright © 2010. All Rights Reserved.