Пример #1
0
 public int startAnimation() {
   if (animationIsPaused) {
     animation.startAnimation();
     return 0;
   } else {
     return 1;
   }
 }
Пример #2
0
  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;
  }