| CARVIEW |
|
beenclock
|
| Summary | Swing Binary Clock |
|---|---|
| Categories | None |
| License | Mozilla[TM] Public License (MPL) |
| Owner(s) | saourdak |
BeenClock binary clock
This project is an full java/swing implementation of a binary clock component. Binary clocks are clocks that you read in binary format - entracing, hypnotizing visual components you can stare at for hours on end.
The following is an example of using beenClock as an applet (your browser must support applets):
How to read the clock
The digits are read binary-style from bottom (0) up (maximum 8). the two first digits are for the hour of day, the two middle digits are for minutes, the last digits being the seconds.
Standalone usage
To get usage instructions for a standalone clock, bring up the
java class with a -h switch for help:
javaw -classpath "lib/beenClock-1.0.jar" com.sardak.bc.ClockPanel
-h
The ouput screen will indicate usage options, including images used for the "off" light and the "on" light, and a background color of image:
com.sardak.bc.ClockPanel [options]
Where [options] includes:
-h: help screen
-on [image path]: image used for the 'on' light
-off [image path]: image used for the 'off' light
-back [HEX string]: background color in hexadecimal format
-backImg [image path]: path to background image
Here is the basic example:
javaw -classpath "lib/beenClock-1.0.jar"
com.sardak.bc.ClockPanel
Here is an example with a white background, and image icons selected for "off" and "on":
javaw -classpath "lib/beenClock-1.0.jar" com.sardak.bc.ClockPanel -back #FFFFFF -off img/bluelight.png -on img/redlight.png
Applet usage
To use in a applet, drop the jar binary into the same directory as
your hosting web page and load into the page with an applet
tag. The "on" and "off" light values can be injected as applet
parameters.
<applet codebase="." archive="beenClock-1.0.jar"
code="com.sardak.bc.ClockApplet.class" alt="Binary Clock Applet"
width="180" height="130">
<param name="onLight" value="images/redlight.png"/>
<param name="offLight" value="images/bluelight.png"/>
<param name="bgColor" value="#FFFFFF"/>
</applet>
Dowloading
Download either just the jar or a complete zip in the distributions folder
| Powered by CollabNet | Feedback |
FAQ |
Press |
Developer tools
© 1995 - 2007 CollabNet. CollabNet is a registered trademark of CollabNet, Inc. |
