|
SIRFreeTree
Sample HTML Source:
<APPLET CODE="SIRtree.class" WIDTH=300 HEIGHT=350>
<PARAM NAME="TITLE" VALUE="Example Tree 1">
<PARAM NAME="TITLEFONT" VALUE="1">
<PARAM NAME="ICONS" VALUE="NICON2.gif">
<PARAM NAME="BGCOLOR" VALUE="10">
<PARAM NAME="NODEFONT" VALUE="3">
<PARAM NAME="HBGCOLOR" VALUE="2">
<PARAM NAME="TXTCOLOR" VALUE="2">
<PARAM NAME="HTXTCOLOR" VALUE="10">
<PARAM NAME="FONT1" VALUE="Helvetica|B">
<PARAM NAME="FONT2" VALUE="Helvetica|N">
<PARAM NAME="FONT3" VALUE="Courier|N">
<PARAM NAME="Color1" VALUE="150|150|150">
<PARAM NAME="Color2" VALUE="0|0|0">
<PARAM NAME="Color3" VALUE="120|190|190">
<PARAM NAME="Color4" VALUE="150|220|220">
<PARAM NAME="Color5" VALUE="0|0|0">
<PARAM NAME="Color6" VALUE="90|160|160">
<PARAM NAME="Color7" VALUE="247|156|57">
<PARAM NAME="Color8" VALUE="27|162|67">
<PARAM NAME="Color9" VALUE="248|168|77">
<PARAM NAME="Color10" VALUE="255|255|255">
<PARAM NAME="NODE0" VALUE="ROOT|Sirius|0|http://www.net800.co.uk/netstart/sirius/|NewTarget|http://www.net800.co.uk/netstart/sirius/|NewTarget|1">
<PARAM NAME="NODE1" VALUE="ROOT|Top Node 1|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|3|4">
<PARAM NAME="NODE2" VALUE="ROOT|Top Node 2|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|3|4">
<PARAM NAME="NODE3" VALUE="Top Node 1|This is a sub node with a help file attached|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3|4">
<PARAM NAME="NODE4" VALUE="Top Node 1|Many Levels|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|3|4">
<PARAM NAME="NODE5" VALUE="Top Node 1|Node 6|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3|4">
<PARAM NAME="NODE6" VALUE="Top Node 1|Node 7|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3|4">
<PARAM NAME="NODE7" VALUE="Top Node 2|Node 8|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0">
<PARAM NAME="NODE8" VALUE="Top Node 2|Node 9|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0">
<PARAM NAME="NODE9" VALUE="Top Node 2|Node 10|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0">
<PARAM NAME="NODE10" VALUE="Many Levels|In fact|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE11" VALUE="In fact|You can have as many levels|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE12" VALUE="You can have as many levels|as you wish|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE13" VALUE="as you wish|Node 14|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE14" VALUE="Node 14|Node 15|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE15" VALUE="Node 15|Node 16|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE16" VALUE="Node 16|Node 17|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE17" VALUE="Node 17|Node 18|1|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|1|-1|4">
<PARAM NAME="NODE18" VALUE="Node 18|Mulitple Levels|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0">
<PARAM NAME="NODE19" VALUE="Node 18|Many more levels are possible|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0">
<PARAM NAME="NODE20" VALUE="Root Node 3|Node 20|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
<PARAM NAME="NODE21" VALUE="Root Node 3|Node 21|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
<PARAM NAME="NODE22" VALUE="Root Node 3|Node 22|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
<PARAM NAME="NODE23" VALUE="Root Node 3|Node 23|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
<PARAM NAME="NODE24" VALUE="Root Node 3|Node 24|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
<PARAM NAME="NODE25" VALUE="Root Node 3|Node 25|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
<PARAM NAME="NODE26" VALUE="Root Node 3|Node 26|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
<PARAM NAME="NODE27" VALUE="Root Node 3|Node 27|2|EX1.html|EX1Target|SIRtreeHelp.html|Hex1Target|0|3">
</APPLET>
Parameters
The following is the complete list of parameters and features available in the fully licensed version. If you are using the freeware
version then please note the table at the bottom of this page.
| SIRtree Applet Parameters. |
| Parameter Name | Description | Range of Values | Typical Value | Default Value if Parameter not present |
| FONT1 | Font Definition | Type|N,B,I | TimesRoman|B | Courier|N |
| . | | N - Normal | TimesRoman|I | |
| . | | B - Bold | TimesRoman|BI | |
| FONT10 | | I - Italic | | |
| Color1 | Color definition | Red Green Blue | 255|255|255 (White) | 255|255|255 |
| . | | 0-255|0-255|0-255 | 0|0|0 (Black) | 0|0|0 |
| . | | | 255|0|0 (Red) | |
| Color10 | | | 255|128|0 (Orange) | |
| TITLE | The Tree Title | Text | This is the Main Title. | |
| TITLEFONT | The number of the Font | 1 - 10 | 1 | 1 |
| BORDER | Border Flag (0=No Border, 1=Border) | 0 or 1 | 1 | 0 |
| BGCOLOR | Background color number | 1 - 10 | 1 | 1 |
| TXTCOLOR | Text color number | 1 - 10 | 1 | (nColors) |
| HBGCOLOR | Highlight Background color number | 1 - 10 | 1 | (nColors) |
| HTXTCOLOR | Highlight Text color number | 1 - 10 | 1 | (nColors) |
| LINECOLOR | Connecting Line color number | 1 - 10 | 1 | (nColors) |
| TITLEFONT | Title font number | 1 - 10 | 1 | 1 |
| NODEFONT | Title font number | 1 - 10 | 1 | 1 |
| ICONS | Image File containing images for Node Icons, Lines, Collapse and Expand Boxes, Help Icon. | See table below. | NICON.gif | none |
| BGIMG | Image file containing image for BG Image. | | Grad1.gif | none |
| NODE0 | Node Data | | | |
| . | See Below for details of the NODE parameter | | | |
| NODEn | | | | |
| The NODE Parameter. |
Each Node on the tree is represented by one NODE parameter in the HTML file. The following table explains
what each part of the parameter means. This table should be viewed in conjunction with the example files
in order to obtain a clearer understanding. In addition the following points should be noted.
(1) The top level Nodes should always have a Parent of 'ROOT', which tells the APPLET they are the very top of
the tree.
(2) Each part of the NODE parameter should be separated by a '|'.
(3) The first node parameter name should be called 'NODE0', the second 'NODE1', the third 'NODE2' and so on
sequentially numbered without any gaps in the numbering.
|
| Description | Example Value | Explanation |
| Parent | ROOT | This tells the which Parent node this node should belong to. |
| Node Description | A Node on the Tree | This is the text that will appear for this node. |
| Node Graphic (Integer) | 1 | This is the number of the image in the ICONS file. This image is displayed for this node. |
| Main URL | Node1.htm | This is the URL which is executed when this node receives a mouse click. |
| Main Target | NODE1 | The target frame in which to display the URL. |
| Help URL | HelpFile1.htm | A second URL, executable when the 'Help Graphic' for this node receives a mouse click. |
| Help Target | HELPTARGET | The target frame in which to display this URL |
| Node type (0=Leaf,1=Node) | 1 | Indicates whether there are nodes below this node or not. 0 - Leaf, no nodes below this one; 1 - Node, means there may be further nodes below. |
| Node Help Graphic | 4 | This is the number of the Help image for this node in the ICONS file. This image is displayed for this node. |
| Node Expanded Graphic | 2 | This is the number of the expanded image in the ICONS file. This image is displayed for this node when expanded. If this parameter is not present then the first node graphic is used. |
| The Icon Image file. |
The Applet will on start up read in this file and build an array of images. Each icon should be 14 pixels by
14 pixels. The icons should be arranged vertically below each other in a single image file. When the images
are read, they are placed in an image array with the top being numbered 1, the next is numbered 2 and so on.
|
| Differences between the Freeware & fully licensed versions. |
| Feature |
Full Licensed Version |
Freeware Version |
| Max number of Nodes |
10,000 |
1,000 |
| Max number of Icons |
100 |
10 |
| Optional Border |
Yes |
No |
| Optional Title |
Yes |
No |
| Please also note that in the Freeware version the first node on the tree will always be 'Sirius'. |
Back to SIRFreeTree
|
New on the Java Boutique:
New Article:
Servlets and JSP
In addition to applets, applications, servlets, and articles, we are now accepting submissions of JSP snippets! If you have a piece of JSP code that you think would be useful to others, then send it in!
... [Submissions]
New Tutorial:
Introduction to Java Part 6:
Building Your First Application
Selena Sol goes through all the Java code and HTML necessary to create a java application.
... [more Tutorials]
Year in Review:
The Best of 1999
Y2K has come and gone and now we have a chance to look back over the past year.
In 1999 we posted over 250 applets, servlets, applications, and tools.
In this list are the 24 most popular apps from 1999.
... [popular applets]
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
100s of free Java code files to download.
Copyright 1999-2000 internet.com Corp.
All Rights Reserved. Legal Notices.
|