Esempio n. 1
0
 public void startStop() {
   if (time.getStatus() != Status.STOPPED) {
     // if started, stop it
     time.stop();
     lastClockTime = 0;
   } else {
     // if stopped, restart
     time.play();
   }
 }
Esempio n. 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);
   }
 }
Esempio n. 3
0
 private void stopDockRevealerTimer() {
   if (dockRevealer != null && dockRevealer.getStatus() == Animation.Status.RUNNING)
     dockRevealer.stop();
 }
Esempio n. 4
0
 private void stopDockHiderTrigger() {
   if (dockHiderTrigger != null && dockHiderTrigger.getStatus() == Animation.Status.RUNNING)
     dockHiderTrigger.stop();
 }
Esempio n. 5
0
 public boolean isAwaitingLaunch() {
   return launchWait != null
       && launchWait.getStatus() == javafx.animation.Animation.Status.RUNNING;
 }
 private void setValueInternal(Label label) {
   if (animation.getStatus() != Status.RUNNING) {
     animateTransitionToLabel(label);
   }
 }
 public boolean isTimelineRunning() {
   return timeline == null ? false : timeline.getStatus() == Timeline.Status.RUNNING;
 }