Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

antichess
Class Timer  view Timer download Timer.java

java.lang.Object
  extended byantichess.Timer

public class Timer
extends java.lang.Object

A timer to count down a given time.


Field Summary
private  boolean isTiming
           
private  long temp
           
private  long timeLeft
           
 
Constructor Summary
Timer()
           
Timer(long startTime)
          Initializes a timer with starting time
 
Method Summary
 boolean getIsTiming()
          See if the timer is running
 long getTimeLeft()
           
 void setTimeLeft(int time)
           
 void startTimer()
           
 void stopTimer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeLeft

private long timeLeft

isTiming

private boolean isTiming

temp

private long temp
Constructor Detail

Timer

public Timer(long startTime)
Initializes a timer with starting time


Timer

public Timer()
Method Detail

getTimeLeft

public long getTimeLeft()

getIsTiming

public boolean getIsTiming()
See if the timer is running


setTimeLeft

public void setTimeLeft(int time)

startTimer

public void startTimer()

stopTimer

public void stopTimer()