package lectures.animation.threads.ui;
import util.annotations.WebDocuments;
import lectures.animation.threads_commands.AShuttleAnimationCommand;
import lectures.composite.objects_shapes.PlottedShuttle;
import lectures.mvc.properties.AnObservablePlottedShuttle;
import bus.uigen.OEFrame;
import bus.uigen.ObjectEditor;
@WebDocuments({"Lectures/AnimationThreadsUi.pptx", "Lectures/AnimationThreadsUi.pdf", "Videos/AnimationThreadsUi.avi"})
public class AConcurrentShuttleAnimator extends AFancyShuttleAnimator {
protected static int animationNumber;
public AConcurrentShuttleAnimator(PlottedShuttle theShuttle) {
super(theShuttle);
}
public void animateShuttle() {
Thread thread = new Thread(
(new AShuttleAnimationCommand(
this, shuttle,animationStep, animationPauseTime)));
thread.setName("Animation Thread " + animationNumber);
thread.start();
animationNumber++;
System.out.println (thread + " created by " + Thread.currentThread());
}
}