JSAMBA -- Java version of the SAMBA Animation Program


This page provides access to JSamba, a Java version of the Samba algorithm animation system. This java version is not as robust as the X-Windows original Samba, but it should give you a good feel for how the system works. All Samba commands are implemented (we think) but this java version does not run as smoothly or as quickly as the original. Also, because JSamba runs as an applet, you cannot read files from your disk as input. Consequently, you must pick already prepared animation scripts from a menu, interactively type in animation commands, or use your mouse to cut and paste large command traces.

JSamba was first implemented by Solomon Duskis. Special thanks for providing help with coding go to Anind Dey, the Lambada project folks at Duke University, and Stephen Hartley at Drexel for his Java version of xtango's animator. Clemens Wagner next provided much help, input and functionality for the system.

Please try out the system and let us know what you think. If you observe errors or problems, please send email to stasko@cc.gatech.edu reporting the problem.



Below are a few sample Samba animation scripts. To try them out, copy them using your mouse and paste them into the JSamba animation transcript window, then click the "Start" button. Alternatively, you can just select some existing scripts from the menu on the lower right, then click the "Load" and "Run" buttons.

comment This is a sample animation script
circle 1 0.8 0.8 0.1 red half
line 2 0.1 0.1 0.2 0.2 green thin
rectangle 3 0.1 0.9 0.1 0.1 blue solid
text 4 0.0 0.0 0 black Hello
text 5 0.5 0.5 1 black RealLongStringandThenSomeAndEvenMore
circle 6 0.3 0.3 0.2 wheat solid
triangle 7 0.5 1.0 0.6 0.8 0.4 0.9 cyan solid
bigtext 8 0.2 0.2 0 black Some Big Text
moveto 1 6
moverelative 3 0.05 -0.4
jumprelative 4 0.4 0.4
raise 1
lower 1
color 6 blue
move 3 0.5 0.5
jump 3 0.9 0.9
jumpto 3 6
raise 3
fill 3 half
fill 3 outline
fill 3 half
vis 3
vis 3
vis 6
delete 8
line 200 0.9 0.2 0.0 0.6 black thick
bigtext 8 0.6 0.2 0 DeepPink More Big Text
flextext 88 0.4 0.3 0 magenta 8x13bold Flex Text 8x13bold
rectangle 12 0.7 0.7 0.1 0.1 green solid
exchangepos 12 3
exchangepos 12 3
exchangepos 12 3
exchangepos 12 3
switchpos 12 3
circle 99 0.8 0.8 0.15 black outline
exchangepos 1 99
bg pink
bg LemonChiffon2
coords -0.5 -0.5 1.5 1.5


viewdef MainView 600 600
viewdef SecondView 400 400
comment Switch to MainView.
view MainView
comment Draw a line there.
line thinblackline 0.2 0.2 0.5 0.0 black thin
comment Switch to the SecondView.
view SecondView
comment Draw a rectangle here.
rectangle redrectangle 0.2 0.1 0.3 0.2 red half
view MainView
comment Let's move the rectangle and the line at the same time.
{
view SecondView
move redrectangle 0.3 0.3
view MainView
move thinblackline 0.5 0.5
}
delay 15
comment Now, let's move them separately.
moverelative thinblackline -0.2 -0.2
view SecondView
moverelative redrectangle 0.2 0.2
delay 15
comment Let's put in a polygon in SecondView.
polygon greenpoly 4 green solid 0.0 0.0 0.5 0.5 0.7 0.5 0.5 0.1 0.0 0.0
comment Let's alter the fill and color for the rectangle.
fill redrectangle solid
color redrectangle khaki
delay 15
comment Let's get rid of that polygon.
delete greenpoly


Back to Software Visualization Home Page
Questions or comments? Email gvu-webmaster@cc.gatech.edu.