diff --git a/src/org/ntlab/animations/MagnetRONAnimation.java b/src/org/ntlab/animations/MagnetRONAnimation.java index f73128c..52e1200 100644 --- a/src/org/ntlab/animations/MagnetRONAnimation.java +++ b/src/org/ntlab/animations/MagnetRONAnimation.java @@ -333,7 +333,7 @@ setCurrentCycleCount(0); } - public void updateCurrentCycle(int currentCycleCount) { + public void updateCurrentCycle() { if (!getReverse()) { // Animation direction is forward. setCurrentCycleCount((int) (currentCycleCount + Math.signum(getTotalCycleCount()))); } else { @@ -361,11 +361,10 @@ if(Math.abs(getCurrentCycleCount()) < Math.abs(getTotalCycleCount())) { // Test code (will be deleted) System.out.println(TAG + ": Run task " + getSourceCell().getId() + " " + MagnetRONAnimation.this.getClass().getSimpleName() + "-" + getCurrentCycleCount() + ". ThreadId=" + Thread.currentThread().getId()); - updateCurrentCycle(getCurrentCycleCount()); + updateCurrentCycle(); jumpTo(getCurrentCycleCount()); } else if(Math.abs(getCurrentCycleCount()) >= Math.abs(getTotalCycleCount())){ animationCount = 0; - System.out.println(TAG + ": animationCount=" + animationCount); onFinished(); } } @@ -373,7 +372,6 @@ setScheduledFuture(scheduledFuture); setCurrentStatus(Status.RUNNING); animationCount = 1; - System.out.println(TAG + ": animationCount=" + animationCount); }; break; case PAUSED: @@ -421,7 +419,7 @@ if(Math.abs(getCurrentCycleCount()) < Math.abs(getTotalCycleCount())) { // Test code (will be deleted) System.out.println(TAG + ": Run task " + getSourceCell().getId() + " " + MagnetRONAnimation.this.getClass().getSimpleName() + "-" + getCurrentCycleCount() + ". ThreadId=" + Thread.currentThread().getId()); - updateCurrentCycle(getCurrentCycleCount()); + updateCurrentCycle(); jumpTo(getCurrentCycleCount()); } else if(Math.abs(getCurrentCycleCount()) >= Math.abs(getTotalCycleCount())){ onFinished();