Class ChartFrame

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

public class ChartFrame extends JFrame
A frame for displaying a chart.
See Also:
  • 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 - if true, put the Chart(Panel) into a JScrollPane.
  • Method Details

    • getChartPanel

      Returns the chart panel for the frame.
      Returns:
      The chart panel.