Class DefaultCropModelChart

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jfree.chart.ChartPanel
net.simplace.ui.jfreechart.style.DefaultCropModelChart
All Implemented Interfaces:
ActionListener, MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Printable, Serializable, EventListener, Accessible, org.jfree.chart.event.ChartChangeListener, org.jfree.chart.event.ChartProgressListener, org.jfree.chart.event.OverlayChangeListener

public class DefaultCropModelChart extends org.jfree.chart.ChartPanel
Chart panel for the default crop model chart: three plots with a shared date axis. The top plot shows e.g. biomass (lines and measured bullets, second axis for further lines and bullets with error bars), the center plot bars (e.g. rainfall) and lines on a second axis (e.g. LAI), the bottom plot the soil layer values as colored blocks (XYBlockRenderer) with lines and bullets (e.g. root depth).
See Also:
  • Constructor Details

  • Method Details

    • createChart

      public static org.jfree.chart.JFreeChart createChart(Double aYAxisStepHight, org.jfree.data.xy.XYDataset TopLine1Dataset, org.jfree.data.xy.XYDataset TopLine2Dataset, org.jfree.data.xy.XYDataset TopBulletDataset, org.jfree.data.xy.XYIntervalSeriesCollection aTopStatisticalBulletDataset, org.jfree.data.xy.XYDataset CenterBarDataset, org.jfree.data.xy.XYDataset CenterLineDataset, org.jfree.data.xy.XYDataset CenterBulletDataset, org.jfree.data.xy.XYIntervalSeriesCollection aCenterStatisticalBulletDataset, org.jfree.data.xy.XYZDataset BottomLayerDataset, Double aLayerMinValue, Double aLayerMaxValue, org.jfree.data.xy.XYDataset BottomLineDataset, org.jfree.data.xy.XYDataset BottomBulletDataset, String TopYAxisLabel, String TopYAxis2Label, String CenterYAxisLabel1, String CenterYAxisLabel2)
      Creates a chart for the specified data sets.

      The chart title is the fixed text Crop Model.

      Parameters:
      aYAxisStepHight - height of a layer block, null for the default (3)
      TopLine1Dataset - lines of the top plot (first axis)
      TopLine2Dataset - lines of the top plot (second axis)
      TopBulletDataset - measured values of the top plot (bullets, first axis)
      aTopStatisticalBulletDataset - measured values with error bars of the top plot (second axis)
      CenterBarDataset - bars of the center plot (first axis)
      CenterLineDataset - lines of the center plot (second axis)
      CenterBulletDataset - measured values of the center plot (bullets, second axis)
      aCenterStatisticalBulletDataset - measured values with error bars of the center plot (second axis)
      BottomLayerDataset - layer values (time, depth, value) of the bottom plot
      aLayerMinValue - lower bound of the paint scale, null for the default (0)
      aLayerMaxValue - upper bound of the paint scale, null for the default (1); if not greater than the lower bound, the lower bound + 1 is used
      BottomLineDataset - lines of the bottom plot
      BottomBulletDataset - measured values of the bottom plot (bullets)
      TopYAxisLabel - label of the first axis of the top plot
      TopYAxis2Label - label of the second axis of the top plot
      CenterYAxisLabel1 - label of the first (bar) axis of the center plot
      CenterYAxisLabel2 - label of the second (line) axis of the center plot
      Returns:
      A chart instance.