MoonBadge

Last updated: 08.05.2002


Files

Parameters

Test Applet


Files

Filename Description Java Class
MoonBadgeApplet Implements the moon badge, including specific drawing methods and parameter reading. [Java File] [Class File]
MoonCalculation Calculates the phase of the moon based on a given date. [Java File] [Class File]
MoonApplet General class of applets for displaying phases of the moon. [Java File] [Class File]
ExtendedApplet Implements parameter parsing and other frequently-required applet functionality. [Java File] [Class File]
Images Images used by this applet. [Directory]  
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
basename String - - Base name of images. The number of the moon phase (0-8) and the extension will be added to this name to return the file for the appropriate phase.
image-extension String .gif, .jpg etc. .gif Extension (including the '.') to be added to the filename of each image file.
show-phase-name Boolean yes,no yes Show the name of the moon's phase.
show-date Boolean yes,no yes Show today's date.

Test Applet

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