Class ChartBuilder

java.lang.Object
org.adempiere.apps.graph.ChartBuilder

public class ChartBuilder extends Object
Builder for JFree Chart
Author:
Paul Bowden, Adaxa Pty Ltd, hengsin
  • Constructor Details

    • ChartBuilder

      public ChartBuilder(MChart chart)
      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

      public HashMap<String,MQuery> getQueries()
      Returns:
      named query
    • getQuery

      public MQuery getQuery(String key)
      Parameters:
      key -
      Returns:
      MQuery