This package contains demos that center around the diverse animation effects that can be applied to graph elements and to graph views.
Class | Description |
---|---|
demo.view.anim.AnimatedStructuralChangesDemo | Demonstrates how to combine animation effects for structural graph changes with animated graph layout changes |
demo.view.anim.AnimationEffectsDemo | Shows various animation effects for graph elements and graph views |
demo.view.anim.LabelAnimationDemo | Demonstrates how to animate label movement along an edge |
demo.view.anim.EaseInEaseOutDemo | Demonstrates how to apply ease in and ease out effects to animations on the basis of animated node movements |
demo.view.anim.FadeInFadeOutDemo | Demonstrates how to animate node creation and deletion with a
specialized GraphListener |
Set <yFilesDir>/src as your source directory. Then add <yFilesDir>/lib/y.jar and the source folder <yFilesDir>/src to your classpath. Now you should be ready to compile and run all executable demo classes.
First make sure you have the build tool Ant installed on your system. Now you can use the demo build script build.xml located in <yFilesDir>/src/demo to launch each demo by specifying its simple class name as a target. Alternatively, launch the interactive demo driver by specifying run as target to conveniently access all demos.