[START] [CLASSES] [DATA] | [applet] [data & style] [appearance] [window location & size] [examples] |
|
General description |
|
---|
Supposing that your document is
http://MyDomain.com/main/docs/showtree.html
and classes are located in directory
http://MyDomain.com/main/Java/classes/
the tag should look like:
In a regular mode:
<applet codebase="http://MyDomain.com/main/Java/classes/"
code="lt102.class" height=..
width=.. align=.. > In a debug mode (see below): <applet codebase="http://MyDomain.com/main/Java/classes/"
code="lt102e.class" height=..
width=.. align=.. > |
Note:
If the document is located in the same directory as classes, codebase parameter isn't nesessary.
Other parameters (width,height,align) relate to the applet area inside the document.
|
parameters |
|
---|
There should be
to appoint the tree data file use the following:
<param name=source value="file_1" > where "file_1" denotes the source file location (only file name if it is located in the document's directory, and a full Internet path otherwise). In this tag is absencent, the program will seek the file "source.sdl" in the current document directory. It may be useful for you to maintain some tree parameters (usually those concerning a tree style) in a separate data file. Then you may include it as follows: <param name=style value="file_2" > |
Note:
If you wish to show the tree in a separate named window, use:
<param name=window value="some_name" > - the tree starts in the separate window, which name is "some_name". |
Then,
if you prefer to start the tree window just after the document is loaded,
the applet area being painted by the specified color, use
<param name=background value="XXXXXX" > where XXXXXX is the color specification in a usual hexadecimal RGB format |
or
if you prefer to put the start button into the applet area, use
<param name=button value="button_name" > |
Note:
To control the window size and locaton use the following:
1) in pixels:
<param name=window.location value="x,y">
<param name=window.size value="width,height">
<param name=window.location value="100,150">
<param name=window.size value="200,300"> |
![]() |
2) in percentage of the screen:
<param name=window.location value="x%,y%">
<param name=window.size value="width%,height%">
<param name=window.location value="10%,50%">
<param name=window.size value="40%,40%"> |
![]() |
Note:
|
Examples |
|
---|
<applet code="lt102.class" width=60 height=30 align=absmiddle> <param name=source value="example1.src"> <param name=style value="style.src"> <param name=window value="Example 1 (capacity test)"> <param name=button value="Start"> <param name=window.location value="50%,55%"> <param name=window.size value="50%,40%"> </applet> |
|
<applet code="lt102.class" width=60 height=30 align=absmiddle> <param name=source value="example2.src"> <param name=window value="Example2 (capacity test)"> <param name=background value="ff0000"> <param name=window.location value="0%,55%"> <param name=window.size value="50%,40%"> </applet> |
(to restart this tree just press the "RELOAD" or "REFRESH" button) |
<applet code="lt102.class" width=200 height=150 align=absmiddle> <param name=source value="example3.src"> <param name=style value="style.src"> </applet> |
[TOP] | [START] [CLASSES] [DATA] | [<applet>] [data & style] [appearance] [window location & size] [examples] |