All Packages  This Package

Class WordClock

java.lang.Object
 |
 +----java.awt.Component
       |
       +----java.awt.Container
             |
             +----java.awt.Panel
                   |
                   +----java.applet.Applet
                         |
                         +----WordClock

public class WordClock
extends Applet
implements Runnable
WordClock -- an applet that shows the time in English. Based on the ancient QTIME.REXX, and typical Java applets.

Parameters:
face
the font face to use
size
the font size to use
Author:
Mike Cowlishaw, December 1979 - January 1985.


Field Index

 o timer

Method Index

 o init()
Initialize the applet
 o paint(Graphics)
paint the applet
 o run()
Timer: repaint every second
 o start()
Applet start: start the Thread
 o stop()
Applet stopped: stop the timer
 o wordtime(Rexx)
WORDTIME -- a cut-down version of QTIME.REXX

Variables

 o timer
 timer=Thread null
Options:
INHERITABLE
Java Syntax:
protected Thread timer

Constructors

 o init
 method init
Initialize the applet

Java Syntax:
public void init()
 o paint
 method paint(g=Graphics)
paint the applet

Parameters:
g
Graphics contents for painting
Java Syntax:
public void paint(Graphics)
 o run
 method run
Timer: repaint every second

Java Syntax:
public void run()
 o start
 method start
Applet start: start the Thread

Java Syntax:
public void start()
 o stop
 method stop
Applet stopped: stop the timer

Java Syntax:
public void stop()
 o wordtime
 method wordtime(arg) static returns Rexx
WORDTIME -- a cut-down version of QTIME.REXX

Parameters:
Arg1
is the time string (hh:mm:ss)
Returns:
the time in english, as a Rexx string
Java Syntax:
public static Rexx wordtime(Rexx)

All Packages  This Package