Class FWChartFormComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, net.simplace.core.FWBusyIndicator, net.simplace.core.FWObserver

public class FWChartFormComponent extends FWAbstractFormComponent
Deprecated.
use FWResultFormComponent with show mode chart
This form component displays a JFreeChart. It is a display only component. The displayed chart can be set by one of the setChart(JFreeChart) methods.
Author:
Andreas Enders
See Also:
  • Field Details

    • iChartPanel

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

    • FWChartFormComponent

      public FWChartFormComponent(String aFormID, String aFieldID, boolean aShowLabel, int aDetachable, org.jdom2.Element aFormElement, net.simplace.core.FWObservable aObservable)
      Deprecated.
      Creates the component; without form filler the chart is created from the dataset in the parameter <field id> and the chart style in <field id>.style.
      Parameters:
      aFormID - id of the form the component is placed in
      aFieldID - id of the component
      aShowLabel - true to show a caption label
      aDetachable - detachability, one of the DETACH_* constants
      aFormElement - the form element
      aObservable - parameters of the functionality
  • Method Details

    • getValue

      public String getValue()
      Deprecated.
      Specified by:
      getValue in class FWAbstractFormComponent
      Returns:
      always null; the component has no value
    • setValue

      public void setValue(Object aValue)
      Deprecated.
      Does nothing because a chart can not be created from string.
      Specified by:
      setValue in class FWAbstractFormComponent
      Parameters:
      aValue - not used
    • setChart

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

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

      public void update(net.simplace.core.FWObservable aObservabal, Object aKeyOfParameterChanged)
      Deprecated.
      Only the base behaviour; the chart is not an input component.
      Specified by:
      update in interface net.simplace.core.FWObserver
      Overrides:
      update in class FWAbstractFormComponent
      Parameters:
      aObservabal - the parameters
      aKeyOfParameterChanged - key of the changed parameter
    • processFormFiller

      public void processFormFiller()
      Deprecated.
      Creates the chart with the form filler; the chart style is taken from <field id>.style or formFiller.styletype.
      Specified by:
      processFormFiller in class FWAbstractFormComponent
    • getValueCell

      protected com.lowagie.text.Rectangle getValueCell(int aType)
      Deprecated.
      Description copied from class: FWAbstractFormComponent
      Returns the value cell used for generating the RTF, PDF or HTML version of the form.
      Specified by:
      getValueCell in class FWAbstractFormComponent
      Parameters:
      aType - output type, e.g. PrintHelper.TYPE_PDF
      Returns:
      an iText cell (PdfPCell for PDF, Cell otherwise)