Class CategoryChartDataConsumer
- java.lang.Object
 - 
- jadex.commons.SimplePropertyObject
 - 
- jadex.extension.envsupport.evaluation.AbstractChartDataConsumer
 - 
- jadex.extension.envsupport.evaluation.CategoryChartDataConsumer
 
 
 
 
- 
- All Implemented Interfaces:
 IPropertyObject,ITableDataConsumer
public class CategoryChartDataConsumer 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.extension.envsupport.evaluation.AbstractChartDataConsumer
chart 
- 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CategoryChartDataConsumer()Create a new chart consumer. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddValue(java.lang.Comparable seriesname, java.lang.Object valx, java.lang.Object valy, DataTable data, java.lang.Object[] row)Add a value to a specific series of the chart.protected org.jfree.chart.JFreeChartcreateChart()Create a chart with the underlying dataset.- 
Methods inherited from class jadex.extension.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, toString 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty 
 - 
 
 - 
 
- 
- 
Method Detail
- 
createChart
protected org.jfree.chart.JFreeChart createChart()
Create a chart with the underlying dataset.- Specified by:
 createChartin classAbstractChartDataConsumer- Returns:
 - The chart.
 
 
- 
addValue
protected void addValue(java.lang.Comparable seriesname, java.lang.Object valx, java.lang.Object valy, DataTable data, java.lang.Object[] row)Add a value to a specific series of the chart.- Specified by:
 addValuein classAbstractChartDataConsumer- Parameters:
 seriesname- The series name.valx- The x value.valy- The y value.data- The data table.row- The current data row.
 
 - 
 
 -