public void startStop() {
   if (time.getStatus() != Status.STOPPED) {
     // if started, stop it
     time.stop();
     lastClockTime = 0;
   } else {
     // if stopped, restart
     time.play();
   }
 }
 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;
 }
 private void setValueInternal(Label label) {
   if (animation.getStatus() != Status.RUNNING) {
     animateTransitionToLabel(label);
   }
 }
 public boolean isTimelineRunning() {
   return timeline == null ? false : timeline.getStatus() == Timeline.Status.RUNNING;
 }