Analog Clock

Last updated: 08.05.2002


Files

Parameters

Test Applet


Files

Filename Description Java Class
AnalogClockApplet Implements the analog clock, including specific drawing methods and parameter reading. [Java File] [Class File]
ClockApplet Implements basic clock functionality; threads, time calculation etc. [Java File] [Class File]
ExtendedApplet Implements parameter parsing and other frequently-required applet functionality. [Java File] [Class File]
Project Archive (StuffIt) Sources and CodeWarrior project in StuffIt 5 format for Macintosh users. [StuffIt Archive]  
Project Archive (ZIP) Sources in ZIP format for PC users. [ZIP Archive]  

To download source or class files, click on the file icon with your right mouse button (Windows/UNIX) or click and hold (Macintosh) and choose "Save ..." or "Download ...". Archives containing the sources for this applet are provided in StuffIt 5 and Zip format.

Parameters

Parameter Type Values Default Notes
time-zone int -12 to +12 - Offset relative to GMT (in hours). If this parameter is not specified, the clock will show time in the user's time zone. Setting this parameter to 0 will give GMT.
hand-color Color #rrggbb #000000 Color used for the clock's hands
second-hand-color Color #rrggbb #FF0000 Color used for the clock's second hand
frame-color Color #rrggbb #000000 Color of frame surrounding clock
face-color Color #rrggbb #FFFFFF Color for the clock face
background-color Color #rrggbb #CCCCCC Color used for background. Set this color to the color of your page background.
show-seconds boolean yes, no yes Show the second hand.

Test Applet

[raingod:resources:java] -- [up][links][home]