JavaLib
 
WorldLib
 
draw
idraw
adraw
colors
 
Samples
 
Sources
Downloads
 
TSRJ Home
TSRJ Local

World Drawing Library

ProfessorJ provides two libraries that support the drawing of simple shapes and the design of interactive games controlled by the timer and key events. The draw package supports the functional programming style. The idraw package supports the imperative programming style. Both of them use two simple libraries: colors that supplies the eight basic color choices for the drawings, and geometry that defines the class that represents a geometric location. Programs that use these library packages (draw, idraw, colors, geometry) run nearly unchanged in Java 1.5, using the library packages provided here. The only required changes are adding the visibility modifiers (public) for the overriden or implemented methods in the class extending the World class in the draw or idraw library.

Additionally, we also provide a library package adraw that allow the programmer to run their imperative programs as Java applets.


last updated on Tue Nov 10 14:02:53 EST 2009generated with PLT Scheme