Class JFreeChartHelper

java.lang.Object
net.simplace.core.ui.jfreechart.JFreeChartHelper

public class JFreeChartHelper extends Object
Author:
Andreas Enders
  • Constructor Details

    • JFreeChartHelper

      public JFreeChartHelper()
  • Method Details

    • fuzzyChart

      public static org.jfree.chart.ChartPanel fuzzyChart(JFreeChartHelper.FuzzyType aType, Integer aX1, Integer aX2, Integer aX3, Integer aX4, String aAxisLabelX)
      Parameters:
      aType -
      aX1 -
      aX2 -
      aX3 -
      aX4 -
      aAxisLabelX -
      Returns:
      ChartPanel
    • createCatagoryDataset

      public static org.jfree.data.category.CategoryDataset createCatagoryDataset(Comparable[] category, Comparable[] dataDesc, Object[]... data)
      Creates a CategoryDataset from an Array of numbers
      Parameters:
      category - (horizontal) categories of the data (if null the array indices are used)
      dataDesc - descriptions of the data rows (if null the array indices are used)
      data - the series
      Returns:
    • createCatagoryDataset

      public static org.jfree.data.category.CategoryDataset createCatagoryDataset(double catOffset, double catFactor, Comparable[] dataDesc, Object[]... data)
      Creates a CategoryDataset from an Array of numbers. The categories are generated automatically from the array indices: category = catOffset + idx*catFactor
      Parameters:
      catOffset - Offset added to the data arrays index
      catFactor - Factor the data arrays index is multiplied with
      dataDesc - descriptions of the data rows (if null the array indices are used)
      data - the series
      Returns: