|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.chart.ChartFactory
public class ChartFactory
Factory class for creating ready-made charts.
| Constructor Summary | |
|---|---|
ChartFactory()
|
|
| Method Summary | |
|---|---|
static JFreeChart |
createAreaChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Creates an area chart with default settings. |
static JFreeChart |
createAreaXYChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset data,
boolean legend)
Creates an XY area plot. |
static JFreeChart |
createCandlestickChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
HighLowDataset data,
boolean legend)
Creates and returns a default instance of a candlesticks chart based on the specified dataset. |
static JFreeChart |
createGanttChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String dateAxisLabel,
MultiIntervalCategoryDataset data,
boolean legend)
Creates a Gantt chart with default settings. |
static JFreeChart |
createHighLowChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
HighLowDataset data,
boolean legend)
Creates and returns a default instance of a high-low-open-close chart based on the specified dataset. |
static JFreeChart |
createHorizontalBarChart(java.lang.String title,
java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel,
CategoryDataset data,
boolean legend)
Creates a horizontal bar chart with default settings. |
static JFreeChart |
createHorizontalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Creates a horizontal 3D-effect bar chart with default settings. |
static JFreeChart |
createLineChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Creates a line chart with default settings. |
static JFreeChart |
createPieChart(java.lang.String title,
PieDataset data,
boolean legend)
Creates a pie chart with default settings. |
static JFreeChart |
createScatterPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset data,
boolean legend)
Creates a scatter plot with default settings. |
static JFreeChart |
createSignalChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
SignalsDataset data,
boolean legend)
Creates and returns a default instance of a signal chart based on the specified dataset. |
static JFreeChart |
createStackedHorizontalBarChart(java.lang.String title,
java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel,
CategoryDataset data,
boolean legend)
Creates a stacked horizontal bar chart with default settings. |
static JFreeChart |
createStackedVerticalBarChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Creates a stacked vertical bar chart with default settings. |
static JFreeChart |
createStackedVerticalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Creates a stacked vertical bar chart with default settings. |
static JFreeChart |
createTimeSeriesChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
XYDataset data,
boolean legend)
Creates and returns a time series chart. |
static JFreeChart |
createVerticalBarChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Creates a vertical bar chart with default settings. |
static JFreeChart |
createVerticalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Creates a vertical 3D-effect bar chart with default settings. |
static JFreeChart |
createVerticalXYBarChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
IntervalXYDataset data,
boolean legend)
Creates and returns a default instance of a VerticalXYBarChart based on the specified dataset. |
static JFreeChart |
createWindPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
WindDataset data,
boolean legend)
|
static JFreeChart |
createXYChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset data,
boolean legend)
Creates an XY (line) plot with default settings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChartFactory()
| Method Detail |
|---|
public static JFreeChart createVerticalBarChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.categoryAxisLabel - The label for the category axis.valueAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createVerticalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
Added by Serge V. Grachov.
title - The chart title.categoryAxisLabel - The label for the category axis.valueAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createStackedVerticalBarChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.categoryAxisLabel - The label for the category axis.valueAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createStackedVerticalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.categoryAxisLabel - The label for the category axis.valueAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createHorizontalBarChart(java.lang.String title,
java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.domainAxisLabel - The label for the category axis.rangeAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createHorizontalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.categoryAxisLabel - The label for the category axis.valueAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createStackedHorizontalBarChart(java.lang.String title,
java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.domainAxisLabel - The label for the category axis.rangeAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createLineChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.categoryAxisLabel - The label for the category axis.valueAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createAreaChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend)
title - The chart title.categoryAxisLabel - The label for the category axis.valueAxisLabel - The label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createGanttChart(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String dateAxisLabel,
MultiIntervalCategoryDataset data,
boolean legend)
title - The chart title.categoryAxisLabel - The label for the category axis.dateAxisLabel - The label for the date axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createPieChart(java.lang.String title,
PieDataset data,
boolean legend)
title - The chart title.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createXYChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset data,
boolean legend)
title - The chart title.xAxisLabel - A label for the X-axis.yAxisLabel - A label for the Y-axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createAreaXYChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset data,
boolean legend)
title - The chart title.xAxisLabel - A label for the X-axis.yAxisLabel - A label for the Y-axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createScatterPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset data,
boolean legend)
title - The chart title.xAxisLabel - A label for the X-axis.yAxisLabel - A label for the Y-axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createWindPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
WindDataset data,
boolean legend)
public static JFreeChart createTimeSeriesChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
XYDataset data,
boolean legend)
Note that you can supply a TimeSeriesDataset to this method as it is a subclass of XYDataset.
title - The chart title.timeAxisLabel - A label for the time axis.valueAxisLabel - A label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createVerticalXYBarChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
IntervalXYDataset data,
boolean legend)
title - The chart title.xAxisLabel - A label for the X-axis.yAxisLabel - A label for the Y-axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createHighLowChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
HighLowDataset data,
boolean legend)
title - The chart title.timeAxisLabel - A label for the time axis.valueAxisLabel - A label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createCandlestickChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
HighLowDataset data,
boolean legend)
title - The chart title.timeAxisLabel - A label for the time axis.valueAxisLabel - A label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
public static JFreeChart createSignalChart(java.lang.String title,
java.lang.String timeAxisLabel,
java.lang.String valueAxisLabel,
SignalsDataset data,
boolean legend)
title - The chart title.timeAxisLabel - A label for the time axis.valueAxisLabel - A label for the value axis.data - The dataset for the chart.legend - A flag specifying whether or not a legend is required.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||