Class XYChartDataConsumer
- java.lang.Object
-
- jadex.commons.SimplePropertyObject
-
- jadex.extension.envsupport.evaluation.AbstractChartDataConsumer
-
- jadex.extension.envsupport.evaluation.XYChartDataConsumer
-
- All Implemented Interfaces:
IPropertyObject
,ITableDataConsumer
public class XYChartDataConsumer extends AbstractChartDataConsumer
Create a X/Y chart consumer, x an y must be double values.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map
seriesmap
The series map.-
Fields inherited from class jadex.extension.envsupport.evaluation.AbstractChartDataConsumer
chart
-
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
-
-
Constructor Summary
Constructors Constructor Description XYChartDataConsumer()
Create a new chart consumer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.protected org.jfree.chart.JFreeChart
createChart()
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:
createChart
in 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:
addValue
in classAbstractChartDataConsumer
- Parameters:
seriesname
- The series name.valx
- The x value.valy
- The y value.data
- The data table.row
- The current data row.
-
-