public synchronized void setPulseSource(PulseSource pulseSource) { TridentAnimationThread current = TimelineEngine.getInstance().animatorThread; if ((current != null) && current.isAlive()) throw new IllegalStateException( "Cannot replace the pulse source thread once it's running"); this.pulseSource = pulseSource; }
/** * Returns an instance of the animator thread. * * @return The animator thread. */ private TridentAnimationThread getAnimatorThread() { synchronized (threadSemaphore) { if (this.animatorThread == null) { this.animatorThread = new TridentAnimationThread(); this.animatorThread.start(); } return this.animatorThread; } }
public synchronized void setPulseSource(PulseSource pulseSource) { TridentAnimationThread current = TimelineEngine.getInstance().animatorThread; if ((current != null) && current.isAlive()) throw new IllegalStateException( "Cannot replace the pulse source thread once it's running"); this.pulseSource = pulseSource; }
public synchronized void setPulseSource(PulseSource pulseSource) { TridentAnimationThread current = TimelineEngine.getInstance().animatorThread; if ((current != null) && current.isAlive()) throw new IllegalStateException( "Cannot replace the pulse source thread once it's running"); this.pulseSource = pulseSource; }
/** * Returns an instance of the animator thread. * * @return The animator thread. */ private TridentAnimationThread getAnimatorThread() { if (this.animatorThread == null) { this.animatorThread = new TridentAnimationThread(); this.animatorThread.start(); } return this.animatorThread; }
/** * Returns an instance of the animator thread. * * @return The animator thread. */ private TridentAnimationThread getAnimatorThread() { if (this.animatorThread == null) { this.animatorThread = new TridentAnimationThread(); this.animatorThread.start(); } return this.animatorThread; }