Package net.simplace.core.ui.jfreechart
Class JFreeChartHelper
java.lang.Object
net.simplace.core.ui.jfreechart.JFreeChartHelper
- Author:
- Andreas Enders
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jfree.data.category.CategoryDatasetcreateCatagoryDataset(double catOffset, double catFactor, Comparable[] dataDesc, Object[]... data) Creates aCategoryDatasetfrom an Array of numbers.static org.jfree.data.category.CategoryDatasetcreateCatagoryDataset(Comparable[] category, Comparable[] dataDesc, Object[]... data) Creates aCategoryDatasetfrom an Array of numbersstatic org.jfree.chart.ChartPanelfuzzyChart(JFreeChartHelper.FuzzyType aType, Integer aX1, Integer aX2, Integer aX3, Integer aX4, String aAxisLabelX)
-
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 aCategoryDatasetfrom an Array of numbers- Parameters:
category- (horizontal) categories of the data (ifnullthe array indices are used)dataDesc- descriptions of the data rows (ifnullthe 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 aCategoryDatasetfrom 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 indexcatFactor- Factor the data arrays index is multiplied withdataDesc- descriptions of the data rows (ifnullthe array indices are used)data- the series- Returns:
-