예제 #1
0
 public void startStop() {
   if (time.getStatus() != Status.STOPPED) {
     // if started, stop it
     time.stop();
     lastClockTime = 0;
   } else {
     // if stopped, restart
     time.play();
   }
 }
예제 #2
0
 public void stopReset() {
   if (time.getStatus() != Status.STOPPED) {
     // if started, stop it
     time.stop();
     lastClockTime = 0;
   } else {
     // if stopped, reset it
     lastClockTime = 0;
     elapsedMillis = 0;
     refreshTimeDisplay(0, 0, 0);
   }
 }
예제 #3
0
 private void stopDockRevealerTimer() {
   if (dockRevealer != null && dockRevealer.getStatus() == Animation.Status.RUNNING)
     dockRevealer.stop();
 }
예제 #4
0
 private void stopDockHiderTrigger() {
   if (dockHiderTrigger != null && dockHiderTrigger.getStatus() == Animation.Status.RUNNING)
     dockHiderTrigger.stop();
 }
예제 #5
0
 public boolean isAwaitingLaunch() {
   return launchWait != null
       && launchWait.getStatus() == javafx.animation.Animation.Status.RUNNING;
 }
예제 #6
0
 private void setValueInternal(Label label) {
   if (animation.getStatus() != Status.RUNNING) {
     animateTransitionToLabel(label);
   }
 }
 public boolean isTimelineRunning() {
   return timeline == null ? false : timeline.getStatus() == Timeline.Status.RUNNING;
 }