net.simplace.ui.formengine.result.FWChartFormComponent

Version: 1.0
Deprecated:

This form component displays a org.jfree.chart.JFreeChart. It is a display only component. The displayed chart can be set by one of the setChart(JFreeChart) methods.


public class FWChartFormComponent extends
net.simplace.ui.formengine.FWAbstractFormComponent {
// Public Constructors
public FWChartFormComponent(String aFormID, String aFieldID, boolean
aShowLabel, int aDetachable, Element aFormElement, FWObservable
aObservable);

// Protected Instance Variables
protected ChartPanel iChartPanel;

// Public Instance Methods
public String getValue(); // Defines
net.simplace.ui.formengine.FWAbstractFormComponent


Returns JFreeChart.toString() of the displayed chart.
returns {@code null} if no chart is currently displayed
public void setValue(Object aValue); // Defines
net.simplace.ui.formengine.FWAbstractFormComponent


Does nothing because a chart can not be created from string.
public void setChart(JFreeChart aChart);

Sets the displayed chart.
public void setChart(Dataset aDataset, ChartStyle aStyle);

Creates and displays a chart.
public void update(FWObservable aObservabal, Object aKeyOfParameterChanged);
// Defines net.simplace.ui.formengine.FWAbstractFormComponent


This method is called whenever the observed object is changed. It does nothing yet, because ChartFormComponent is not an input component.
public void processFormFiller(); // Defines
net.simplace.ui.formengine.FWAbstractFormComponent



// Protected Instance Methods
protected Rectangle getValueCell(int aType);
// Defines net.simplace.ui.formengine.FWAbstractFormComponent




}



Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JPanel (javax.accessibility.Accessible) - net.simplace.ui.formengine.FWAbstractFormComponent (net.simplace.util.FWObserver) - FWChartFormComponent