Merge pull request #42 from nitta-lab/operateAnimation
operateAnimation: #5 Add JToolButton to operate animation like resume, pause, stop.

I'll confirm soon.
commit 96ded9979786d735a44a9cf33d6090acbd50802f
2 parents 0db0ab1 + 73f387f
Naoya Nitta authored on 29 Dec 2020
Showing 7 changed files
View
icons/magnetron/resume_co.png 0 → 100644
View
icons/magnetron/suspend_co.png 0 → 100644
View
icons/magnetron/terminate_co.png 0 → 100644
View
17
src/org/ntlab/actions/PauseAnimationAction.java 0 → 100644
package org.ntlab.actions;
 
import java.awt.event.ActionEvent;
 
import org.ntlab.deltaViewer.IMagnetRON;
 
public class PauseAnimationAction extends AbstractMagnetRONAction {
 
public PauseAnimationAction(IMagnetRON magnetRON) {
super("ˆêŽž’âŽ~", magnetRON);
}
 
@Override
public void actionPerformed(ActionEvent e) {
magnetRON.pauseAnimation();
}
}
View
2
■■■
src/org/ntlab/deltaViewer/DeltaAnimation.java
System.out.println(stepCount + ": " + curPoint.getX());
stepCount++;
if(stepCount >= FINAL_STEP_COUNT){
timer.cancel();
scheduledThreadPoolExecutor.shutdown();
}
}
}
}, 0, 100, TimeUnit.MILLISECONDS);
System.out.println(stepCount + ": " + curDimension.width);
stepCount++;
if(stepCount >= FINAL_STEP_COUNT){
timer.cancel();
scheduledThreadPoolExecutor.shutdown();
}
}
}
}, 0, 100, TimeUnit.MILLISECONDS);
View
src/org/ntlab/deltaViewer/MagnetRONFrame.java
View
src/org/ntlab/deltaViewer/MagnetRONViewer.java