All Packages Class Hierarchy This Package Previous Next Index
Class com.monsterworks.utils.Ticker
java.lang.Object
|
+----java.lang.Thread
|
+----com.monsterworks.utils.Ticker
- public class Ticker
- extends java.lang.Thread
This class implements a ticker (or metronome). It is primarily used to notify its client each time a specified period of time has elapsed.
- Version:
- 1.0b1
- Author:
- Aaron Montgomery
- See Also:
- Timer
Ticker(Ticked, int)
- This method constructs a timer when provided with the object to be timed and the amount of time to measure.
run()
- This method starts the timer.
Ticker
public Ticker(com.monsterworks.utils.Ticked inTicked,
int inInterval)
- This method constructs a timer when provided with the object to be timed and the amount of time to measure.
-
- Parameters:
- inTicked - is the object which will be alerted with each tick
- inInterval - must be a positive number and is measured in miliseconds
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