org.jscience.history.time
Class CountdownClock

java.lang.Object
  extended by org.jscience.history.time.Clock
      extended by org.jscience.history.time.CountdownClock
All Implemented Interfaces:
java.util.EventListener, TimeListener

public class CountdownClock
extends Clock

A class representing a way to display and change time.


Constructor Summary
CountdownClock(TimeServer timeServer)
          Creates a new CountdownClock object.
 
Method Summary
 Time getCountdownTime()
          DOCUMENT ME!
 Time getTime()
          DOCUMENT ME!
 void reset()
          DOCUMENT ME!
 void setCountdownTime(ModernTime countdownTime)
          DOCUMENT ME!
 void setTime(ModernTime time)
          DOCUMENT ME!
 void start()
          DOCUMENT ME!
 void stop()
          DOCUMENT ME!
 void timeChanged(TimeEvent event)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.history.time.Clock
getTimeServer, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountdownClock

public CountdownClock(TimeServer timeServer)
Creates a new CountdownClock object.

Parameters:
timeServer - DOCUMENT ME!
Method Detail

start

public void start()
DOCUMENT ME!


stop

public void stop()
DOCUMENT ME!


reset

public void reset()
DOCUMENT ME!


getCountdownTime

public Time getCountdownTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCountdownTime

public void setCountdownTime(ModernTime countdownTime)
DOCUMENT ME!

Parameters:
countdownTime - DOCUMENT ME!

getTime

public Time getTime()
DOCUMENT ME!

Specified by:
getTime in class Clock
Returns:
DOCUMENT ME!

setTime

public void setTime(ModernTime time)
DOCUMENT ME!

Parameters:
time - DOCUMENT ME!

timeChanged

public void timeChanged(TimeEvent event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!