The SceneBeans animator is a simple tool that loads and runs an animation file, allows the user to invoke commands on the animation and displays events announced by the animation. It is useful for debugging animations and new visual and behavioural beans.
The main entry point of the animator is the Animator class
in the animator.jar file. The JAR file in the lib
subdirectory of the SceneBeans distribution. The JAR Main-Class and
Class-Path attributes of the JAR file have been configured so that it
can be run using the -jar option of the java virtual machine
(see the documentation for your Java installation for more information).
The first argument is the name of an XML file that defines the animation. That can optionally be followed by pairs of arguments that define macros that are substituted when parsing the animation: the first of each pair is the macro name, the second the macro value.
The following examples are equivalent. They assume that the animator is being run from the root of the SceneBeans distribution.
java -jar lib/animator.jar xml/copter.xml
java -cp lib/animator.jar Animator xml/copter.xml
The following example defines some macros to parameterise the animation.
java -cp lib/animator.jar Animator xml/example.xml N 4 COLOR ff0000