Package org.bzdev.anim2d


package org.bzdev.anim2d
2D animation package. Please see the BZDev library factory documentation for configuring factories and the org.bzdev.anim2d package description for additional details.

This package, which is based on the devqsim package, provides support for two dimensional animation, typically "stick figures" or simple graphics, although any level of complexity is possible.

In order for a simulation to run, one must first call the method Animation2D.initFrames(int,String,String) Animation2D.initFrames(int,String,String,org.bzdev.io.DirectoryAccessor), Animation2D.initFrames(int,String,org.bzdev.gio.ISWriterOps), or Animation2D.initFrames(int,org.bzdev.gio.ISWriterOps) in order to specify the maximum number of frames that could be generated some data regarding the output file, and the type of the image produced and to create the animation's graph. Then calls to scheduleFrames will schedule events to generate frames at the appropriate time. Finally, a call to run, possibly with arguments, will create the animation.

Please see the BZDev library factory documentation for configuring factories and the org.bzdev.anim2d package description for additional details.