com.croftsoft.apps.sprite
Class FrameRateSampler
java.lang.Object
com.croftsoft.apps.sprite.FrameRateSampler
- All Implemented Interfaces:
- ComponentPainter, ComponentUpdater
public final class FrameRateSampler
- extends Object
- implements ComponentPainter, ComponentUpdater
Monitors and updates the frame rate scrolling text.
- Since:
- 2002-02-21
- Version:
- 2002-03-23
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrameRateSampler
public FrameRateSampler(TextSprite textSprite,
long samplePeriod,
String prefix)
update
public void update(JComponent component)
- Description copied from interface:
com.croftsoft.core.animation.ComponentUpdater
- Updates the state of a JComponent and calls repaint() as required.
- Specified by:
update
in interface ComponentUpdater
paint
public void paint(JComponent component,
Graphics2D graphics)
- Specified by:
paint
in interface ComponentPainter
CroftSoft Apps Javadoc (2008-09-28 21:15:07)