The second applet, "My Wandering Mind-2", is an extension of the first
one and introduces a few new features. The applet parameters are of the
form Name
, or Name1-Name2
, or
Name1-Name2/n
. The single Name
parameter represents a single disconnected node, the Name1-Name2
shows that Name1
is linked to Name2
,
and Name1-Name2/n
links the two names but with a replusion
factor of strength n
.
For example, if we have the string:
<PARAM NAME=edges VALUE="Dog-Cat/100,Cat-Mouse/200,Mouse-Cheese">then there is a link from Dog to Cat with a repulsion factor of 100, from Cat to Mouse with a repulsion factor of 200, but an intimate relationship between Mouse and Cheese. Dog is directly linked to Cat, but only indirectly to Mouse and cheese.
Cmd: RM 2000
, then you can edit my 2nd example.
Try editing my 2nd example, larry-mind2.html
, with your
own set of nodes and relationships. The only extra thing you have
to do is copy it to your existing Java
directory:
cp ~larryg/public_html/Java/larry-mind2.html Java
and then edit it and link to it as before. My 2nd applet looks like this:
<TITLE> My Wandering Mind-2 </TITLE> <H1> My Wandering Mind-2 </h1> <H1> Hey, I'm a more complicated guy than at first glance. Here is the real me! </H1> <HR> <APPLET CODE="Graph.class" WIDTH=600 HEIGHT=400> <PARAM NAME=edges VALUE="Larry-Food,Larry-MoreFood,... <PARAM NAME=center VALUE="Larry"> </APPLET> <HR>The trailing line "..." indicates that a lot more values fit than can be shown here.
Oh, and one more thing: these examples assume that all of the
.class
files and the applet HTML are in the same directory. There
is another applet parameter named
CODEBASE
that lets you place the applet and .class files in different directories.
(R561) Modifying a More Complex Applet
© Copyright 1997 UW C&C