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.
timer
init()
- Initialize the applet
paint(Graphics)
- paint the applet
run()
- Timer: repaint every second
start()
- Applet start: start the Thread
stop()
- Applet stopped: stop the timer
wordtime(Rexx)
- WORDTIME -- a cut-down version of QTIME.REXX
timer
timer=Thread null
- Options:
- INHERITABLE
- Java Syntax:
- protected Thread timer
init
method init
-
Initialize the applet
- Java Syntax:
- public void init()
paint
method paint(g=Graphics)
-
paint the applet
- Parameters:
- g
- Graphics contents for painting
- Java Syntax:
- public void paint(Graphics)
run
method run
-
Timer: repaint every second
- Java Syntax:
- public void run()
start
method start
-
Applet start: start the Thread
- Java Syntax:
- public void start()
stop
method stop
-
Applet stopped: stop the timer
- Java Syntax:
- public void stop()
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