Embedding a Java BrainStorm viewer in a web page.
-------------------------------------------------

1) HTML


Put this into the <BODY> of your page:
                                        
<applet name=brainview code=BrainViewTest.class width=550 height=350>
<param name=width value=550>
<param name=height value=350>
<param name=file value="brainstorm.brn">
<param name=browser value=default>
<param name=textSize value=2>

</applet>

Change the parameters to suit. Width(x2), Height(x2), file name and 
text size. See below for details.


2) FILES

The zip file contains eleven class files.  These are the Java
components that display a BrainStorm model.  These all need to live
in the same folder (directory) as the html file.  Obviously, the 
directory needs to contain a .brn file as well.


3) PARAMETERS

In the first line, the overall size of the display area needs to be 
determined.  You can create a grey margin to either side and to the
foot of the BrainStorm display by making these numbers larger than 
the width and height values.

In subsequent lines:
width and height are the size of the BrainStorm model display area
File - the .brn file that you want to render
Browser - leave this as it is
textsize - the size the text appears when first rendered.  The user
can change it using the on-screen buttons.  Values from 1 (smallest)
to 5 (largest)

4) IF SOMETHING GOES WRONG

If things don't go according to plan, please let us know. Having 
said that, you may add a TRACE to the parameter set, in order to
investigate the problem. This is done by adding one of the two 
following parameters:

<param name=debug value=1>

This will write a trace to the Java Console related to any sections 
of code changed since May 2005.

or,

<param name=verbose value=1>

This will write a full trace to the Java Console.



Any problems write to support@brainstormsw.com.


