hmi.util
Interface ClockListener

All Known Implementing Classes:
ClockLabel, ClockPanel, GraphicsDemoEnvironment.MyRenderclockCallback, JOGLRenderer, LWJGLRenderer, LWJGLRenderer1, NavigationControl, PhysicalDemoEnvironment.PhysicsClockListener, SkeletonInterpolator, VJointMoveControl

public interface ClockListener

A ClockListener can receive callbacks, in the form of time(currentTime) calls, made by some Clock object. Such callbacks will often arrive in more or less regular intervals, and with varying precision, but no guarantees can be given in this respect.

Author:
Job Zwiers

Method Summary
 void initTime(double initTime)
          initTime() is called before the Clock starts running, and sends some initial time value.
 void time(double currentTime)
          time() is called, with the "current time" specified in seconds.
 

Method Detail

initTime

void initTime(double initTime)
initTime() is called before the Clock starts running, and sends some initial time value. This will often equal the time send for the first regular time() call. This is done on the same clock Thread that is going to send the regular time() calls.


time

void time(double currentTime)
time() is called, with the "current time" specified in seconds.