Package org.adempiere.apps.graph
Class ChartBuilder
java.lang.Object
org.adempiere.apps.graph.ChartBuilder
Builder for JFree Chart
- Author:
- Paul Bowden, Adaxa Pty Ltd, hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.jfree.chart.JFreeChart
org.jfree.data.category.CategoryDataset
Create and load data set from data sourceorg.jfree.data.general.Dataset
Get current data setorg.jfree.data.general.PieDataset
Create and load data set from data sourceorg.jfree.data.xy.IntervalXYDataset
Create and load data set from data sourcevoid
loadData()
Load data from chart data source
-
Constructor Details
-
ChartBuilder
- Parameters:
chart
-
-
-
Method Details
-
createChart
public org.jfree.chart.JFreeChart createChart()- Returns:
- JFreeChart
-
loadData
public void loadData()Load data from chart data source -
getCategoryDataset
public org.jfree.data.category.CategoryDataset getCategoryDataset()Create and load data set from data source- Returns:
- CategoryDataset
-
getXYDataset
public org.jfree.data.xy.IntervalXYDataset getXYDataset()Create and load data set from data source- Returns:
- IntervalXYDataset
-
getPieDataset
public org.jfree.data.general.PieDataset getPieDataset()Create and load data set from data source- Returns:
- PieDataset
-
getDataset
public org.jfree.data.general.Dataset getDataset()Get current data set- Returns:
- dataset
-
getQueries
- Returns:
- named query
-
getQuery
- Parameters:
key
-- Returns:
- MQuery
-