squint
Class PaceMaker

java.lang.Object
  extended by squint.PaceMaker

public class PaceMaker
extends java.lang.Object

A PaceMaker is a repeating timer designed to support applications that require performing certain tasks at regular intervals such as animations or previewing images from a Camera as video.


Constructor Summary
PaceMaker(double delay, PacerListener listener)
          Construct a PaceMaker that will run at a requested rate
 
Method Summary
 void stop()
          Terminate the activity of a PaceMaker
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaceMaker

public PaceMaker(double delay,
                 PacerListener listener)
Construct a PaceMaker that will run at a requested rate

Parameters:
delay - how may seconds (or fractions thereof) should elapse between invocations of tick
listener - the object whose tick method should be invoked
Method Detail

stop

public void stop()
Terminate the activity of a PaceMaker