public int startAnimation() { if (animationIsPaused) { animation.startAnimation(); return 0; } else { return 1; } }
public int findShortestPath( Object from, Object to, int max_steps, StatisticsPane statisticsPane, int delay) { animation = new BFSSimulation((mxCell) from, (mxCell) to, this, statisticsPane, delay); animation.startAnimation(); return 1; }
public void stopAnimation() { if (animation != null) { animationIsPaused = true; animation.stopAnimation(); } }