All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.monsterworks.utils.Timer



java.lang.Object
   |
   +----java.lang.Thread
           |
           +----com.monsterworks.utils.Timer

public class Timer
extends java.lang.Thread
This class implements a countdown timer. It is primarily used to notify its client that a specified period of time has elapsed.

Version:
1.0b1
Author:
Aaron Montgomery
See Also:
Ticker

Constructor Index

 o Timer(Timed, int)
This method constructs a timer when provided with the object to be timed and the amount of time to measure.

Method Index

 o run()
This method starts the timer.

Constructors

 o Timer


 public Timer(com.monsterworks.utils.Timed inTimed,
              int inInterval)
This method constructs a timer when provided with the object to be timed and the amount of time to measure.

Parameters:
inTimed - is the object which will be alerted when time expires
inInterval - must be a positive number and is measured in miliseconds

Methods

 o run


 public void run()
This method starts the timer.

Overrides:
run in class java.lang.Thread



All Packages  Class Hierarchy  This Package  Previous  Next  Index