Class ChartTiming1

java.lang.Object
org.jfree.chart.demo.ChartTiming1
All Implemented Interfaces:
ActionListener, EventListener

public class ChartTiming1
extends Object
implements ActionListener
Draws a pie chart over and over for 10 seconds. Reports on how many redraws were achieved.

On my PC (SuSE Linux 8.2, JDK 1.4, 256mb RAM, 2.66ghz Pentium) I get 90-95 charts per second.

  • Constructor Details

    • ChartTiming1

      public ChartTiming1()
      Creates a new application.
  • Method Details

    • run

      public void run()
      Runs the timing.
    • actionPerformed

      public void actionPerformed​(ActionEvent event)
      Receives notification of action events (in this case, from the Timer).
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - the event.
    • main

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