public abstract class ChartFactory
extends java.lang.Object
| Constructor and Description |
|---|
ChartFactory() |
| Modifier and Type | Method and Description |
|---|---|
static JFreeChart |
createScatterPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset)
Creates a scatter plot with default settings.
|
static JFreeChart |
createScatterPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset,
PlotOrientation orientation,
boolean legend,
boolean tooltips,
boolean urls)
Creates a scatter plot with default settings.
|
static JFreeChart |
createXYLineChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset)
Creates a line chart (based on an
XYDataset) with default
settings. |
static JFreeChart |
createXYLineChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset,
PlotOrientation orientation,
boolean legend,
boolean tooltips,
boolean urls)
Creates a line chart (based on an
XYDataset) with default
settings. |
static ChartTheme |
getChartTheme()
Returns the current chart theme used by the factory.
|
static void |
setChartTheme(ChartTheme theme)
Sets the current chart theme.
|
public static ChartTheme getChartTheme()
setChartTheme(ChartTheme),
ChartUtilities.applyCurrentTheme(JFreeChart)public static void setChartTheme(ChartTheme theme)
theme - the theme (null not permitted).getChartTheme(),
ChartUtilities.applyCurrentTheme(JFreeChart)public static JFreeChart createScatterPlot(java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel, XYDataset dataset)
XYPlot instance as the plot,
with a NumberAxis for the domain axis, a NumberAxis
as the range axis, and an XYLineAndShapeRenderer as the
renderer.title - the chart title (null permitted).xAxisLabel - a label for the X-axis (null permitted).yAxisLabel - a label for the Y-axis (null permitted).dataset - the dataset for the chart (null permitted).public static JFreeChart createScatterPlot(java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)
XYPlot instance as the plot,
with a NumberAxis for the domain axis, a NumberAxis
as the range axis, and an XYLineAndShapeRenderer as the
renderer.title - the chart title (null permitted).xAxisLabel - a label for the X-axis (null permitted).yAxisLabel - a label for the Y-axis (null permitted).dataset - the dataset for the chart (null permitted).orientation - the plot orientation (horizontal or vertical)
(null NOT permitted).legend - a flag specifying whether or not a legend is required.tooltips - configure chart to generate tool tips?urls - configure chart to generate URLs?public static JFreeChart createXYLineChart(java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel, XYDataset dataset)
XYDataset) with default
settings.title - the chart title (null permitted).xAxisLabel - a label for the X-axis (null permitted).yAxisLabel - a label for the Y-axis (null permitted).dataset - the dataset for the chart (null permitted).public static JFreeChart createXYLineChart(java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)
XYDataset) with default
settings.title - the chart title (null permitted).xAxisLabel - a label for the X-axis (null permitted).yAxisLabel - a label for the Y-axis (null permitted).dataset - the dataset for the chart (null permitted).orientation - the plot orientation (horizontal or vertical)
(null NOT permitted).legend - a flag specifying whether or not a legend is required.tooltips - configure chart to generate tool tips?urls - configure chart to generate URLs?