org.jfree.chart

Class ChartFrame

public class ChartFrame extends JFrame

A frame for displaying a chart.
Constructor Summary
ChartFrame(String title, JFreeChart chart)
Constructs a frame for a chart.
ChartFrame(String title, JFreeChart chart, boolean scrollPane)
Constructs a frame for a chart.
Method Summary
ChartPanelgetChartPanel()
Returns the chart panel for the frame.

Constructor Detail

ChartFrame

public ChartFrame(String title, JFreeChart chart)
Constructs a frame for a chart.

Parameters: title the frame title. chart the chart.

ChartFrame

public ChartFrame(String title, JFreeChart chart, boolean scrollPane)
Constructs a frame for a chart.

Parameters: title the frame title. chart the chart. scrollPane if true, put the Chart(Panel) into a JScrollPane.

Method Detail

getChartPanel

public ChartPanel getChartPanel()
Returns the chart panel for the frame.

Returns: The chart panel.