nl.justobjects.toolkit.sys
Interface TimerCallback


public interface TimerCallback

// This interface defines a callback for the Timer class

Purpose
Timer calls the tick method in the TimerCallback interface after a fixed number of milliseconds (indicated by the interval variable). It measures the amount of time spent in the tick method and adjusts for it.

Implementation

Examples
To start up a timer with this class, create it with a callback and the number of milliseconds in the interval then call the start method:


	Timer timer = new Timer(this, 2000);	// 2 second interval
	timer.start();

 


$Source: /var/cvs/justobjects/toolkit/src/nl/justobjects/toolkit/sys/TimerCallback.java,v $

Since:
$Date: 2003/01/06 00:23:49 $
Version:
$Revision: 1.4 $
Author:
$Author: just $ - Just van den Broecke - Just Objects ©
See Also:
Timer

Method Summary
 void tick()
           
 

Method Detail

tick

public void tick()


Copyright © 2000-2001 - Just Objects B.V.