net.sourceforge.yagurashogi.client.core
Class LabeledTimer

java.lang.Object
  extended by java.lang.Thread
      extended by net.sourceforge.yagurashogi.client.core.LabeledTimer
All Implemented Interfaces:
java.lang.Runnable

public class LabeledTimer
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LabeledTimer(javax.swing.JLabel label)
           
LabeledTimer(javax.swing.JLabel label, int timeLimit)
           
 
Method Summary
 void addTimerListener(LabeledTimerListener listener)
           
 javax.swing.JLabel getLabel()
           
 void restart()
           
 void run()
           
 void stopTiming()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LabeledTimer

public LabeledTimer(javax.swing.JLabel label)

LabeledTimer

public LabeledTimer(javax.swing.JLabel label,
                    int timeLimit)
Method Detail

getLabel

public javax.swing.JLabel getLabel()

addTimerListener

public void addTimerListener(LabeledTimerListener listener)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

restart

public void restart()

stopTiming

public void stopTiming()