Class ChartFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ChartFrame
extends JFrame
A frame for displaying a chart.
See Also:
Serialized Form
  • Constructor Details

    • 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 - iIf true, put the Chart(Panel) into a JScrollPane.
  • Method Details

    • getChartPanel

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