use of edu.uci.ics.jung.algorithms.layout.util.Relaxer 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();
}
Aggregations