advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

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 NameDescriptionRange of ValuesTypical ValueDefault 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.

DescriptionExample ValueExplanation
ParentROOTThis tells the which Parent node this node should belong to.
Node DescriptionA Node on the TreeThis is the text that will appear for this node.
Node Graphic (Integer)1This is the number of the image in the ICONS file.
This image is displayed for this node.
Main URLNode1.htmThis is the URL which is executed when this node receives a mouse click.
Main TargetNODE1The target frame in which to display the URL.
Help URLHelpFile1.htmA second URL, executable when the 'Help Graphic' for this node receives a mouse click.
Help TargetHELPTARGETThe target frame in which to display this URL
Node type (0=Leaf,1=Node)1Indicates 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 Graphic4This is the number of the Help image for this node in the ICONS file.
This image is displayed for this node.
Node Expanded Graphic2This 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

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

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
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 Internet.com eBook Library
 IBM Software Construction Toolbox
 Microsoft RIA Development Center
 Destination .NET
XML error: not well-formed (invalid token) at line 38
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

Mozilla's Ubquity Mashup: For The Masses?
iPhone Users Just Want to Have Fun
Oops! I Fixed the Linux Kernel
Jim Zemlin: The New Center of Linux Gravity
Microsoft's Novell Investment Tops $340M
Fedora 10 Takes Shape
IBM Gives a Mobile Voice to Developers
Inadequate Tools Send Software Down the Drain
USB 3.0 One Step Closer to Reality
Would-Be Linux Contributors May Get a Leg Up

State of the Semantic Web: Know Where to Look
A 3D Exploration of the HTML Canvas Element
Setting Up and Running Subversion and Tortoise SVN with Visual Studio and .NET
Java/JRuby Developers, Say Open 'Sesame' to the Semantic Web
Interpreting Images with MRDS Services
DevXtra Editors' Blog: Executives Avoiding Cloud Computing in Droves
Q&A with James Reinders on the Intel Parallel Studio Beta Program
The Pros and Cons of Outsourcing Enterprise Emails
Hosting Options: Shared or Dedicated Server
Movin' On Up: How to Hop to a New Host

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers