| Description | |||
| KzmBLGraph
is the evolution of my previous KzmStatBar. It's a simple
way to obtain a pretty graph (line, vertical or
horizontal bars), reading the values directly from a text
file that contains labels, numbers and the colors (in the
format R G B) of every bar or point. It is autoscaling,
that means that the size of the bars, or the positions of
the lines, are all calculated basing on the size of the
applet. Actually it reads the data only once, but I hope to have enough time to implement an "auto-read" every "x" seconds or by a mouse click on a button or directly into the applet |
| Parameters | |||
| TextColor (R G B,
default="0 0 0") The color of all text (labels, titles, lines in line graph). BackColor (R G B, default="192 192 192") The background color. BackImage (filename, no default) Use this parameter if you wanna use an image as background. Consider that using this parameter means an overriding of the backcolor and slower a little the applet execution. FileName (filename, default="stat.txt") The name of the file containings data for the graph. Click here to see the file used for the example above. Type (vbar|hbar|line, default=hbar) The type of graph: line is a line graph, vbar is vertical bar, hbar is horizontal bar. Title (string, default="") If exists, is the title of the graph. Copyright (string) This is a simple copyright line. Please, don't change it. The applet is free, so the only cost is to leave this copyright. |
| Download | |||
| KzmBLGraph.zip |
| Example | |||
Here is the tag used for the example above: <APPLET CODE="KzmBLGraph" WIDTH="300" HEIGHT="300">
<PARAM NAME="copyright"
VALUE="Alex 'Kazuma' Garbagnati, kazuma@energy.it">
<PARAM NAME="textcolor" VALUE="0 0 0">
<PARAM NAME="backcolor" VALUE="0 255 255">
<PARAM NAME="filename" VALUE="blgraph.txt">
<PARAM NAME="type" VALUE="vbar">
<PARAM NAME="title" VALUE="Welcome to KzmBLGraph">
</APPLET>
|
|||