com.croftsoft.core.animation.updater
Class FrameRateUpdater

java.lang.Object
  extended by com.croftsoft.core.animation.updater.FrameRateUpdater
All Implemented Interfaces:
ComponentUpdater

public final class FrameRateUpdater
extends Object
implements ComponentUpdater

Samples and prints the frame rate.

Since:
2003-02-12
Version:
$Date: 2008/04/19 21:27:14 $
Author:
David Wallace Croft

Constructor Summary
FrameRateUpdater()
           
FrameRateUpdater(boolean printFrameRate)
           
 
Method Summary
 double getFrameRate()
           
 void update(JComponent component)
          Updates the state of a JComponent and calls repaint() as required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameRateUpdater

public FrameRateUpdater(boolean printFrameRate)

FrameRateUpdater

public FrameRateUpdater()
Method Detail

update

public void update(JComponent component)
Description copied from interface: ComponentUpdater
Updates the state of a JComponent and calls repaint() as required.

Specified by:
update in interface ComponentUpdater

getFrameRate

public double getFrameRate()

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)