Class JFreeChartDemo

All Implemented Interfaces:
ActionListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JFreeChartDemo
extends JFrame
implements ActionListener, WindowListener
The main frame in the chart demonstration application.
See Also:
Serialized Form
  • Field Details

    • EXIT_COMMAND

      public static final String EXIT_COMMAND
      Exit action command.
      See Also:
      Constant Field Values
    • ABOUT_COMMAND

      public static final String ABOUT_COMMAND
      About action command.
      See Also:
      Constant Field Values
    • PREFERRED_SIZE

      public static final Dimension PREFERRED_SIZE
      The preferred size for the frame.
  • Constructor Details

    • JFreeChartDemo

      public JFreeChartDemo()
      Constructs a demonstration application for the JFreeChart Class Library.
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Returns the preferred size for the frame.
      Overrides:
      getPreferredSize in class Container
      Returns:
      the preferred size.
    • actionPerformed

      public void actionPerformed​(ActionEvent event)
      Handles menu selections by passing control to an appropriate method.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - the event.
    • main

      public static void main​(String[] args)
      The starting point for the demonstration application.
      Parameters:
      args - ignored.
    • windowActivated

      public void windowActivated​(WindowEvent e)
      Required for WindowListener interface, but not used by this class.
      Specified by:
      windowActivated in interface WindowListener
      Parameters:
      e - the event.
    • windowClosed

      public void windowClosed​(WindowEvent e)
      Clears the reference to the print preview frames when they are closed.
      Specified by:
      windowClosed in interface WindowListener
      Parameters:
      e - the event.
    • windowClosing

      public void windowClosing​(WindowEvent e)
      Required for WindowListener interface, but not used by this class.
      Specified by:
      windowClosing in interface WindowListener
      Parameters:
      e - the event.
    • windowDeactivated

      public void windowDeactivated​(WindowEvent e)
      Required for WindowListener interface, but not used by this class.
      Specified by:
      windowDeactivated in interface WindowListener
      Parameters:
      e - the event.
    • windowDeiconified

      public void windowDeiconified​(WindowEvent e)
      Required for WindowListener interface, but not used by this class.
      Specified by:
      windowDeiconified in interface WindowListener
      Parameters:
      e - the event.
    • windowIconified

      public void windowIconified​(WindowEvent e)
      Required for WindowListener interface, but not used by this class.
      Specified by:
      windowIconified in interface WindowListener
      Parameters:
      e - the event.
    • windowOpened

      public void windowOpened​(WindowEvent e)
      Required for WindowListener interface, but not used by this class.
      Specified by:
      windowOpened in interface WindowListener
      Parameters:
      e - the event.