Search in sources :

Example 1 with Animator

use of edu.uci.ics.jung.visualization.util.Animator in project abstools by abstools.

the class JungObjectGraph method startAnimator.

private void startAnimator() {
    Relaxer relaxer = new VisRunner((IterativeContext) layout);
    relaxer.stop();
    relaxer.prerelax();
    StaticLayout<String, Integer> staticLayout = new StaticLayout<String, Integer>(graph, layout);
    LayoutTransition<String, Integer> lt = new LayoutTransition<String, Integer>(vv, vv.getGraphLayout(), staticLayout);
    Animator animator = new Animator(lt);
    animator.start();
}
Also used : Animator(edu.uci.ics.jung.visualization.util.Animator) Relaxer(edu.uci.ics.jung.algorithms.layout.util.Relaxer) VisRunner(edu.uci.ics.jung.algorithms.layout.util.VisRunner) StaticLayout(edu.uci.ics.jung.algorithms.layout.StaticLayout) LayoutTransition(edu.uci.ics.jung.visualization.layout.LayoutTransition)

Aggregations

StaticLayout (edu.uci.ics.jung.algorithms.layout.StaticLayout)1 Relaxer (edu.uci.ics.jung.algorithms.layout.util.Relaxer)1 VisRunner (edu.uci.ics.jung.algorithms.layout.util.VisRunner)1 LayoutTransition (edu.uci.ics.jung.visualization.layout.LayoutTransition)1 Animator (edu.uci.ics.jung.visualization.util.Animator)1