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

Constructor Index

 o Ticker(Ticked, 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 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

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