Class DynamicDataDemo

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.jfree.ui.ApplicationFrame
org.jfree.chart.demo.DynamicDataDemo
All Implemented Interfaces:
ActionListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class DynamicDataDemo
extends org.jfree.ui.ApplicationFrame
implements ActionListener
A demonstration application showing a time series chart where you can dynamically add (random) data by clicking on a button.
See Also:
Serialized Form
  • Constructor Details

    • DynamicDataDemo

      public DynamicDataDemo​(String title)
      Constructs a new demonstration application.
      Parameters:
      title - the frame title.
  • Method Details

    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Handles a click on the button by adding new (random) data.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - the action event.
    • main

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