jadex.application.space.envsupport.evaluation
Class HistogramDataConsumer

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

public class HistogramDataConsumer
extends AbstractChartDataConsumer

Create a category chart consumer, x must be a comparable and y must be double value.


Field Summary
 
Fields inherited from class jadex.application.space.envsupport.evaluation.AbstractChartDataConsumer
chart
 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
 
Constructor Summary
HistogramDataConsumer()
          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
 

Constructor Detail

HistogramDataConsumer

public HistogramDataConsumer()
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.