|
There are
several steps to make the applet running.
We
need to configure 3 kind of parameters :
- Global parameters
- Indexed parameters
- Configuration file
Indexed parameters are numbered from
1 to 30. For defining a specific parameter, you just need to add the parameter
number at the end of the parameter name :
e.g. : the second Color defined of the applet
would be so defined:
<PARAM NAME="COLOR2"
VALUE="000000,0000CC">
If parameters include multiple values they will be
separated by a COMMA |
Global Parameters
| DELAY |
Expressed in milliseconds, it defines the delay the screen will be
refreshed |
| BGIMAGE |
Background Image |
| FGIMAGE |
Foreground Image |
| PAUSEHEIGHT |
Y position where the scroll
pauses. |
| STEP |
The step parameter is expressed in pixels. It defines the smoothness of
the animation. You should set this to 1 or 2, for the most visual effect. For speed up the
animation you can increase this step parameter
The height of the Applet must
be divideable by the STEP parameter, otherwise it won't
make the configured pauses. This is that way to ensure the
smooth of the animation.
|
| STOPSCROLL |
if set to 1, the Applet stops the
scroll when the mouse is in the applet window. if set to 1, user can
also scroll through the window with the mouse. Press mouse button and
move it to scroll up and down. |
| BGCOLOR |
Defines the background color in Hexadecimal |
| DEFPADX |
This is the default value of Horizontal padding. See the file
configuration section for more info. |
| DEFPADY |
This is the default value of the vertical padding. See the file
configuration section for more info. |
| DEFSP |
This is the default spacing you will add after a paragraph. |
| FILE |
This is the url to the configuration file to be read. |
| FADE |
This is a 3 values parameter, enabling you making some fade filter on the
top and bottom of the page. The fade is made from the initial color pixel to the default
background color. Personally, I do not recommend the use of this feature if you want it
make to run on Netscape.
Anyway, you should use this feature on small windows, and with delays up to 150,
decreasing the number of frames by second to max. 7.
The first value defines if we have to enables the fade feature, the second value is the
height faded at the top of the applet and the 3d value is the height faded at the bottom
of the applet.
e.g. : VALUE="1,10,10" |
Indexed Parameters
The indexed parameters will be used later in the configuration file. We will
define here the fonts, colors and pictures used through the entire applet.
| COLOR |
This parameter defines the text color used. There are 2 parameters, a
normal color and an highlighted color. If you do not want to make any highlighting just
put twice the same value. |
| FONT |
A font name to be used. All font specific indexes are linked. So you
cannot specify into a paragraph an index for the font, the font size, and other. |
| FONTSIZE |
The font size |
| FONTSTYLE |
Style of font : can be : 'BOLD', 'ITALIC' or
'BOLDITALIC' |
| IMAGE |
2 Values representing an normal state image and an highlighted image |
| SHADOW |
The shadow parameter accepts 4 other fields. It's used with the text
drawn. 2 colors represents the normal state and the highlighted stated. the two last
fields represents the x and y displacement of the text. |
The configuration text file
The configuration text file is a set of parameters which are embedded between a
BEGIN and a END statement. None of the parameters are mandatory, however it will be
interesting to put at least one line of text or one image. For making spaces between sets
you can use a specific parameter for it.
e.g.:
BEGIN
DELAY=3000
IMAGE=1
END
| TEXT |
This parameter will defines the text to be displayed. You can put so many
text you want. To force a line break there are two ways to go. One is to insert a pipe
character into the text, the second way is to put a new Text parameter. This is the only
parameter which can be defined multiple times. |
| TIP |
This parameter defines the text to be displayed in the status bar when a
paragraph is highlighted. |
| URL |
This is the URL to launch on a mouse click. |
| TARGET |
Window where to load a selected URL |
| HALIGN |
You can horizontally align the text in three ways. By default alignment
is set to left, 2 other parameters are accepted : CENTER or RIGHT |
| VALIGN |
You can vertically align the text in three ways. By default alignment is
set to TOP, 2 other parameters are accepted : CENTER or BOTTOM |
| PADX |
This define a horizontal margin, it can be a right margin or a left
margin expressed in pixels. A positive value is a left margin and a negative value is a
right margin. |
| PADY |
This define a vertical margin, it can be a top margin or a bottom
margin expressed in pixels. A positive value is a top margin and a negative value is a
bottom margin. |
| FONT |
This defines the font to use. The font you will use must be related to
the index of the indexed parameters |
| COLOR |
This is the same as for the Font parameter. You define a color to use by
the index used in your indexed parameters. |
| SHADOW |
Index to Shadow indexed parameters |
| DELAY |
You can pause the applet when this message reaches the top of the screen.
The pause is expressed in milliseconds. |
| SPACING |
This defines the space you want to add after the completely rendered
paragraph. It takes in count of the text and images height. For some unknown reasons,
java doesn't calculates exactly the height of a font. It is not recommanded to use a 0
pixel spacing.
If your applet seems to copy the last pixels of a paragraph over and over, you just
have to increase this value.
A last note, when your mouse is in this extra zone, no highlighting or URL launching is
enabled. |
| IMAGE |
Here we go for the pictures parameters. The pictures to use are
related to the indexed parameters you defined. This enables you to use multiple times the
same image without loading it, again and again. |
| IINDEX |
This parameters enables you to put an image in the background or on the
foreground. There are two fields one for the normal state of the paragraph and one for the
highlighted state. This enables you to show the text only when the paragraph is
hilghlighted or only if the paragraph is in a normal state. |
| XIPOS |
This is the horizontal position the picture will be drawn in its canvas |
| YIPOS |
This is the vertical position the picture will be drawn in its canvas |
|