|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.SimplePropertyObject
jadex.application.space.envsupport.evaluation.AbstractChartDataConsumer
public abstract class AbstractChartDataConsumer
Abstract base class for chart consumers.
| Field Summary | |
|---|---|
protected org.jfree.chart.JFreeChart |
chart
The chart. |
| Fields inherited from class jadex.commons.SimplePropertyObject |
|---|
pcs, properties |
| Constructor Summary | |
|---|---|
AbstractChartDataConsumer()
Create a new chart consumer. |
|
| Method Summary | |
|---|---|
protected abstract void |
addValue(Comparable seriesname,
Object valx,
Object valy,
DataTable data,
Object[] row)
Add a value to a specific series of the chart. |
void |
consumeData(long currenttime,
double tick)
Consume data from the provider. |
protected abstract org.jfree.chart.JFreeChart |
createChart()
Create a chart with the underlying dataset. |
org.jfree.chart.JFreeChart |
getChart()
Get the chart. |
JPanel |
getChartPanel()
Get the chart panel. |
protected ResourceInfo |
getResourceInfo(String name,
String[] imports,
ClassLoader classloader)
Find the file for a given name. |
AbstractEnvironmentSpace |
getSpace()
Get the space. |
protected ITableDataProvider |
getTableDataProvider()
Get the table data provider. |
protected Object[] |
getValues(int num,
DataTable data,
Object[] row,
SimpleValueFetcher fetcher)
Get the x/y values for a specific series number. |
void |
refresh()
Refresh the chart. |
| 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 |
|---|
protected org.jfree.chart.JFreeChart chart
| Constructor Detail |
|---|
public AbstractChartDataConsumer()
| Method Detail |
|---|
public void consumeData(long currenttime,
double tick)
consumeData in interface ITableDataConsumercurrenttime - The current time.tick - The current tick.
protected Object[] getValues(int num,
DataTable data,
Object[] row,
SimpleValueFetcher fetcher)
public org.jfree.chart.JFreeChart getChart()
public void refresh()
public AbstractEnvironmentSpace getSpace()
protected ITableDataProvider getTableDataProvider()
protected ResourceInfo getResourceInfo(String name,
String[] imports,
ClassLoader classloader)
throws Exception
name - The filename or logical name (resolved via imports and extension).extension - The required extension.imports - The imports, if any.
Exceptionpublic JPanel getChartPanel()
protected abstract org.jfree.chart.JFreeChart createChart()
protected abstract void addValue(Comparable seriesname,
Object valx,
Object valy,
DataTable data,
Object[] row)
seriesname - The seriesname.valx - The x value.valy - The y value.data - The data table.row - The current data row.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||