示例#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;
  }
示例#3
0
 public void stopAnimation() {
   if (animation != null) {
     animationIsPaused = true;
     animation.stopAnimation();
   }
 }