Class FWChartFormComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, FWObserver

public class FWChartFormComponent extends FWAbstractFormComponent
Deprecated.
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.
Version:
1.0
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, FWObservable aObservable)
      Deprecated.
      Parameters:
      aFormID -
      aFieldID -
      aShowLabel -
      aDetachable -
      aFormElement -
      aObservable -
  • Method Details

    • getValue

      public String getValue()
      Deprecated.
      Returns JFreeChart.toString() of the displayed chart.
      Specified by:
      getValue in class FWAbstractFormComponent
      Returns:
      null if no chart is currently displayed
    • 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 - of the implemented component
    • 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(FWObservable aObservabal, Object aKeyOfParameterChanged)
      Deprecated.
      This method is called whenever the observed object is changed. It does nothing yet, because ChartFormComponent is not an input component.
      Specified by:
      update in interface FWObserver
      Overrides:
      update in class FWAbstractFormComponent
      Parameters:
      aObservabal - the observable object.
      aKeyOfParameterChanged - an argument passed to the notifyObservers method.
      See Also:
    • processFormFiller

      public void processFormFiller()
      Deprecated.
      Specified by:
      processFormFiller in class FWAbstractFormComponent
    • getValueCell

      protected com.lowagie.text.Rectangle getValueCell(int aType)
      Deprecated.
      Description copied from class: FWAbstractFormComponent
      returns the value label to use for generating rtf, pdf or html version of the form
      Specified by:
      getValueCell in class FWAbstractFormComponent
      Returns:
      iText Cell