Class FWChartResultFormComponentPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FWChartResultFormComponentPanel extends FWAbstractResultFormComponentPanel
Result panel displaying a JFreeChart (show mode chart). The chart is created by the form filler (parameters style, jumper, jdbctranspose) or from a dataset in the parameters (parameter result.style, dataset in the parameter named by the jumper). The chart can be exported as PNG or JPG.
Author:
Andreas Enders
See Also:
  • Field Details

    • iChartPanel

      protected org.jfree.chart.ChartPanel iChartPanel
      The Panel the chart is displayed in.
  • Constructor Details

    • FWChartResultFormComponentPanel

      public FWChartResultFormComponentPanel()
  • Method Details

    • initFromFiller

      protected void initFromFiller()
      Creates the chart with the form filler and the chart style of the parameter style; a jdbctranspose parameter is passed to the filler via the functionality's parameters (only while the chart is created).
      Specified by:
      initFromFiller in class FWAbstractResultFormComponentPanel
    • initFromParameters

      protected void initFromParameters()
      Creates the chart from the dataset in the parameter named by the jumper and the chart style of the parameter result.style (warning if missing).
      Specified by:
      initFromParameters in class FWAbstractResultFormComponentPanel
    • exportData

      public void exportData()
      Saves the chart as PNG or JPG (depending on the extension of the chosen file) in the displayed size.
      Specified by:
      exportData in class FWAbstractResultFormComponentPanel
    • setChart

      public void setChart(org.jfree.chart.JFreeChart aChart)
      Sets the displayed chart.
      Parameters:
      aChart - a chart
      See Also:
    • setChart

      public void setChart(org.jfree.data.general.Dataset aDataset, ChartStyle aStyle)
      Creates and displays a chart.
      Parameters:
      aDataset - the data for the a chart
      aStyle - the style for the chart
      See Also: