Uses of Class
org.jfree.chart.JFreeChart
Package
Description
Core classes, including
JFreeChart
and
ChartPanel
.Provides a simple (but so far incomplete) framework for editing chart
properties.
Classes representing components of (or entities in) a chart.
Event classes and listener interfaces, used to provide a change
notification mechanism so that charts are automatically redrawn
whenever changes are made to any chart component.
Plot classes and related interfaces.
Classes for providing useful servlet and JSP functionality.
-
Uses of JFreeChart in org.jfree.chart
Modifier and TypeMethodDescriptionstatic JFreeChart
ChartFactory.createAreaChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset) Creates an area chart with default settings.static JFreeChart
ChartFactory.createAreaChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates an area chart with default settings.static JFreeChart
ChartFactory.createBarChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset) Creates a bar chart with a vertical orientation.static JFreeChart
ChartFactory.createBarChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a bar chart.static JFreeChart
ChartFactory.createBoxAndWhiskerChart
(String title, String categoryAxisLabel, String valueAxisLabel, BoxAndWhiskerCategoryDataset dataset, boolean legend) Creates and returns a default instance of a box and whisker chart based on data from aBoxAndWhiskerCategoryDataset
.static JFreeChart
ChartFactory.createBoxAndWhiskerChart
(String title, String timeAxisLabel, String valueAxisLabel, BoxAndWhiskerXYDataset dataset, boolean legend) Creates and returns a default instance of a box and whisker chart.static JFreeChart
ChartFactory.createBubbleChart
(String title, String xAxisLabel, String yAxisLabel, XYZDataset dataset) Creates a bubble chart with default settings.static JFreeChart
ChartFactory.createBubbleChart
(String title, String xAxisLabel, String yAxisLabel, XYZDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a bubble chart with default settings.static JFreeChart
ChartFactory.createCandlestickChart
(String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, boolean legend) Creates and returns a default instance of a candlesticks chart.static JFreeChart
ChartFactory.createGanttChart
(String title, String categoryAxisLabel, String dateAxisLabel, IntervalCategoryDataset dataset) Creates a Gantt chart using the supplied attributes plus default values where required.static JFreeChart
ChartFactory.createGanttChart
(String title, String categoryAxisLabel, String dateAxisLabel, IntervalCategoryDataset dataset, boolean legend, boolean tooltips, boolean urls) Creates a Gantt chart using the supplied attributes plus default values where required.static JFreeChart
ChartFactory.createHighLowChart
(String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, boolean legend) Creates and returns a default instance of a high-low-open-close chart.static JFreeChart
ChartFactory.createHistogram
(String title, String xAxisLabel, String yAxisLabel, IntervalXYDataset dataset) Creates a histogram chart.static JFreeChart
ChartFactory.createHistogram
(String title, String xAxisLabel, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a histogram chart.static JFreeChart
ChartFactory.createLineChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset) Creates a line chart with default settings.static JFreeChart
ChartFactory.createLineChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a line chart with default settings.static JFreeChart
ChartFactory.createMultiplePieChart
(String title, CategoryDataset dataset, TableOrder order, boolean legend, boolean tooltips, boolean urls) Creates a chart that displays multiple pie plots.static JFreeChart
ChartFactory.createMultiplePieChart3D
(String title, CategoryDataset dataset, TableOrder order, boolean legend, boolean tooltips, boolean urls) Creates a chart that displays multiple pie plots.static JFreeChart
ChartFactory.createPieChart
(String title, PieDataset dataset) Creates a pie chart with default settings.static JFreeChart
ChartFactory.createPieChart
(String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls) Creates a pie chart with default settings.static JFreeChart
ChartFactory.createPieChart
(String title, PieDataset dataset, boolean legend, boolean tooltips, Locale locale) Creates a pie chart with default settings.static JFreeChart
ChartFactory.createPieChart
(String title, PieDataset dataset, PieDataset previousDataset, int percentDiffForMaxScale, boolean greenForIncrease, boolean legend, boolean tooltips, boolean urls, boolean subTitle, boolean showDifference) Creates a pie chart with default settings that compares 2 datasets.static JFreeChart
ChartFactory.createPieChart
(String title, PieDataset dataset, PieDataset previousDataset, int percentDiffForMaxScale, boolean greenForIncrease, boolean legend, boolean tooltips, Locale locale, boolean subTitle, boolean showDifference) Creates a pie chart with default settings that compares 2 datasets.static JFreeChart
ChartFactory.createPieChart3D
(String title, PieDataset dataset) Deprecated.For 3D pie charts, use Orson Charts (https://github.com/jfree/orson-charts).static JFreeChart
ChartFactory.createPieChart3D
(String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls) Deprecated.For 3D pie charts, use Orson Charts (https://github.com/jfree/orson-charts).static JFreeChart
ChartFactory.createPieChart3D
(String title, PieDataset dataset, boolean legend, boolean tooltips, Locale locale) Deprecated.For 3D pie charts, use Orson Charts (https://github.com/jfree/orson-charts).static JFreeChart
ChartFactory.createPolarChart
(String title, XYDataset dataset, boolean legend, boolean tooltips, boolean urls) Creates a polar plot for the specified dataset (x-values interpreted as angles in degrees).static JFreeChart
ChartFactory.createRingChart
(String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls) Creates a ring chart with default settings.static JFreeChart
ChartFactory.createRingChart
(String title, PieDataset dataset, boolean legend, boolean tooltips, Locale locale) Creates a ring chart with default settings.static JFreeChart
ChartFactory.createScatterPlot
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset) Creates a scatter plot with default settings.static JFreeChart
ChartFactory.createScatterPlot
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a scatter plot with default settings.static JFreeChart
ChartFactory.createStackedAreaChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset) Creates a stacked area chart with default settings.static JFreeChart
ChartFactory.createStackedAreaChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a stacked area chart with default settings.static JFreeChart
ChartFactory.createStackedBarChart
(String title, String domainAxisLabel, String rangeAxisLabel, CategoryDataset dataset) Creates a stacked bar chart with default settings.static JFreeChart
ChartFactory.createStackedBarChart
(String title, String domainAxisLabel, String rangeAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a stacked bar chart with default settings.static JFreeChart
ChartFactory.createStackedXYAreaChart
(String title, String xAxisLabel, String yAxisLabel, TableXYDataset dataset) Creates a stacked XY area plot.static JFreeChart
ChartFactory.createStackedXYAreaChart
(String title, String xAxisLabel, String yAxisLabel, TableXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a stacked XY area plot.static JFreeChart
ChartFactory.createTimeSeriesChart
(String title, String timeAxisLabel, String valueAxisLabel, XYDataset dataset) Creates and returns a time series chart.static JFreeChart
ChartFactory.createTimeSeriesChart
(String title, String timeAxisLabel, String valueAxisLabel, XYDataset dataset, boolean legend, boolean tooltips, boolean urls) Creates and returns a time series chart.static JFreeChart
ChartFactory.createWaferMapChart
(String title, WaferMapDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a wafer map chart.static JFreeChart
ChartFactory.createWaterfallChart
(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a waterfall chart.static JFreeChart
ChartFactory.createWindPlot
(String title, String xAxisLabel, String yAxisLabel, WindDataset dataset, boolean legend, boolean tooltips, boolean urls) Creates a wind plot with default settings.static JFreeChart
ChartFactory.createXYAreaChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset) Creates an area chart using anXYDataset
.static JFreeChart
ChartFactory.createXYAreaChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates an area chart using anXYDataset
.static JFreeChart
ChartFactory.createXYBarChart
(String title, String xAxisLabel, boolean dateAxis, String yAxisLabel, IntervalXYDataset dataset) Creates and returns a default instance of an XY bar chart.static JFreeChart
ChartFactory.createXYBarChart
(String title, String xAxisLabel, boolean dateAxis, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates and returns a default instance of an XY bar chart.static JFreeChart
ChartFactory.createXYLineChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset) Creates a line chart (based on anXYDataset
) with default settings.static JFreeChart
ChartFactory.createXYLineChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a line chart (based on anXYDataset
) with default settings.static JFreeChart
ChartFactory.createXYStepAreaChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset) Creates a filled stepped XY plot with default settings.static JFreeChart
ChartFactory.createXYStepAreaChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a filled stepped XY plot with default settings.static JFreeChart
ChartFactory.createXYStepChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset) Creates a stepped XY plot with default settings.static JFreeChart
ChartFactory.createXYStepChart
(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) Creates a stepped XY plot with default settings.ChartMouseEvent.getChart()
Returns the chart that the mouse event relates to.ChartPanel.getChart()
Returns the chart contained in the panel.Modifier and TypeMethodDescriptionvoid
ChartTheme.apply
(JFreeChart chart) Applies this theme to the supplied chart.void
StandardChartTheme.apply
(JFreeChart chart) Applies this theme to the supplied chart.static void
ChartUtils.applyCurrentTheme
(JFreeChart chart) Applies the current theme to the specified chart.static void
ChartUtils.saveChartAsJPEG
(File file, float quality, JFreeChart chart, int width, int height) Saves a chart to a file in JPEG format.static void
ChartUtils.saveChartAsJPEG
(File file, float quality, JFreeChart chart, int width, int height, ChartRenderingInfo info) Saves a chart to a file in JPEG format.static void
ChartUtils.saveChartAsJPEG
(File file, JFreeChart chart, int width, int height) Saves a chart to a file in JPEG format.static void
ChartUtils.saveChartAsJPEG
(File file, JFreeChart chart, int width, int height, ChartRenderingInfo info) Saves a chart to a file in JPEG format.static void
ChartUtils.saveChartAsPNG
(File file, JFreeChart chart, int width, int height) Saves a chart to the specified file in PNG format.static void
ChartUtils.saveChartAsPNG
(File file, JFreeChart chart, int width, int height, ChartRenderingInfo info) Saves a chart to a file in PNG format.static void
ChartUtils.saveChartAsPNG
(File file, JFreeChart chart, int width, int height, ChartRenderingInfo info, boolean encodeAlpha, int compression) Saves a chart to a file in PNG format.void
ChartPanel.setChart
(JFreeChart chart) Sets the chart that is displayed in the panel.void
PolarChartPanel.setChart
(JFreeChart chart) Sets the chart that is displayed in the panel.static void
ChartUtils.writeChartAsJPEG
(OutputStream out, float quality, JFreeChart chart, int width, int height) Writes a chart to an output stream in JPEG format.static void
ChartUtils.writeChartAsJPEG
(OutputStream out, float quality, JFreeChart chart, int width, int height, ChartRenderingInfo info) Writes a chart to an output stream in JPEG format.static void
ChartUtils.writeChartAsJPEG
(OutputStream out, JFreeChart chart, int width, int height) Writes a chart to an output stream in JPEG format.static void
ChartUtils.writeChartAsJPEG
(OutputStream out, JFreeChart chart, int width, int height, ChartRenderingInfo info) Writes a chart to an output stream in JPEG format.static void
ChartUtils.writeChartAsPNG
(OutputStream out, JFreeChart chart, int width, int height) Writes a chart to an output stream in PNG format.static void
ChartUtils.writeChartAsPNG
(OutputStream out, JFreeChart chart, int width, int height, boolean encodeAlpha, int compression) Writes a chart to an output stream in PNG format.static void
ChartUtils.writeChartAsPNG
(OutputStream out, JFreeChart chart, int width, int height, ChartRenderingInfo info) Writes a chart to an output stream in PNG format.static void
ChartUtils.writeChartAsPNG
(OutputStream out, JFreeChart chart, int width, int height, ChartRenderingInfo info, boolean encodeAlpha, int compression) Writes a chart to an output stream in PNG format.static void
ChartUtils.writeScaledChartAsPNG
(OutputStream out, JFreeChart chart, int width, int height, int widthScaleFactor, int heightScaleFactor) Writes a scaled version of a chart to an output stream in PNG format.ModifierConstructorDescriptionChartFrame
(String title, JFreeChart chart) Constructs a frame for a chart.ChartFrame
(String title, JFreeChart chart, boolean scrollPane) Constructs a frame for a chart.ChartMouseEvent
(JFreeChart chart, MouseEvent trigger, ChartEntity entity) Constructs a new event.ChartPanel
(JFreeChart chart) Constructs a panel that displays the specified chart.ChartPanel
(JFreeChart chart, boolean useBuffer) Constructs a panel containing a chart.ChartPanel
(JFreeChart chart, boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips) Constructs a JFreeChart panel.ChartPanel
(JFreeChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, boolean useBuffer, boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips) Constructs a JFreeChart panel.ChartPanel
(JFreeChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, boolean useBuffer, boolean properties, boolean copy, boolean save, boolean print, boolean zoom, boolean tooltips) Constructs a JFreeChart panel.ChartTransferable
(JFreeChart chart, int width, int height) Creates a new chart selection.ChartTransferable
(JFreeChart chart, int width, int height, boolean cloneData) Creates a new chart selection.ChartTransferable
(JFreeChart chart, int width, int height, int minDrawW, int minDrawH, int maxDrawW, int maxDrawH, boolean cloneData) Creates a new chart selection.Constructs a double buffered JFreeChart panel that displays the specified chart.OfflineRenderingChartPanel
(JFreeChart chart, boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips) Constructs a double buffered JFreeChart panel.OfflineRenderingChartPanel
(JFreeChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips) Constructs a double buffered JFreeChart panel.OfflineRenderingChartPanel
(JFreeChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, boolean properties, boolean copy, boolean save, boolean print, boolean zoom, boolean tooltips) Constructs a double buffered JFreeChart panel.PolarChartPanel
(JFreeChart chart) Constructs a JFreeChart panel.PolarChartPanel
(JFreeChart chart, boolean useBuffer) Creates a new panel. -
Uses of JFreeChart in org.jfree.chart.editor
Modifier and TypeMethodDescriptionChartEditorFactory.createEditor
(JFreeChart chart) Creates an editor for the given chart.DefaultChartEditorFactory.createEditor
(JFreeChart chart) Returns a new instance of aChartEditor
.static ChartEditor
ChartEditorManager.getChartEditor
(JFreeChart chart) Returns a component that can be used to edit the given chart.void
ChartEditor.updateChart
(JFreeChart chart) Applies the changes to the specified chart. -
Uses of JFreeChart in org.jfree.chart.entity
Modifier and TypeMethodDescriptionJFreeChartEntity.getChart()
Returns the chart that occupies the entity area.ModifierConstructorDescriptionJFreeChartEntity
(Shape area, JFreeChart chart) Creates a new chart entity.JFreeChartEntity
(Shape area, JFreeChart chart, String toolTipText) Creates a new chart entity.JFreeChartEntity
(Shape area, JFreeChart chart, String toolTipText, String urlText) Creates a new chart entity. -
Uses of JFreeChart in org.jfree.chart.event
Modifier and TypeMethodDescriptionChartChangeEvent.getChart()
Returns the chart that generated the change event.ChartProgressEvent.getChart()
Returns the chart that generated the change event.Modifier and TypeMethodDescriptionvoid
ChartChangeEvent.setChart
(JFreeChart chart) Sets the chart that generated the change event.void
ChartProgressEvent.setChart
(JFreeChart chart) Sets the chart that generated the change event.ModifierConstructorDescriptionChartChangeEvent
(Object source, JFreeChart chart) Creates a new chart change event.ChartChangeEvent
(Object source, JFreeChart chart, ChartChangeEventType type) Creates a new chart change event.ChartProgressEvent
(Object source, JFreeChart chart, int type, int percent) Creates a new chart change event. -
Uses of JFreeChart in org.jfree.chart.plot
Modifier and TypeMethodDescriptionPlot.getChart()
Returns the chart that this plot is assigned to.MultiplePiePlot.getPieChart()
Returns the pie chart that is used to draw the individual pie plots.Modifier and TypeMethodDescriptionvoid
Plot.setChart
(JFreeChart chart) Sets the chart that the plot is assigned to.void
MultiplePiePlot.setPieChart
(JFreeChart pieChart) Sets the chart that is used to draw the individual pie plots. -
Uses of JFreeChart in org.jfree.chart.servlet
Modifier and TypeMethodDescriptionstatic String
ServletUtilities.saveChartAsJPEG
(JFreeChart chart, int width, int height, javax.servlet.http.HttpSession session) Saves the chart as a JPEG format file in the temporary directory.static String
ServletUtilities.saveChartAsJPEG
(JFreeChart chart, int width, int height, ChartRenderingInfo info, javax.servlet.http.HttpSession session) Saves the chart as a JPEG format file in the temporary directory and populates theChartRenderingInfo
object which can be used to generate an HTML image map.static String
ServletUtilities.saveChartAsPNG
(JFreeChart chart, int width, int height, javax.servlet.http.HttpSession session) Saves the chart as a PNG format file in the temporary directory.static String
ServletUtilities.saveChartAsPNG
(JFreeChart chart, int width, int height, ChartRenderingInfo info, javax.servlet.http.HttpSession session) Saves the chart as a PNG format file in the temporary directory and populates theChartRenderingInfo
object which can be used to generate an HTML image map.