javafx.animation.Timeline.getStatus()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(174)

本文整理了Java中javafx.animation.Timeline.getStatus()方法的一些代码示例,展示了Timeline.getStatus()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timeline.getStatus()方法的具体详情如下:
包路径:javafx.animation.Timeline
类名称:Timeline
方法名:getStatus

Timeline.getStatus介绍

暂无

代码示例

代码示例来源:origin: jfoenixadmin/JFoenix

private boolean isAnimating() {
  return timeline != null && timeline.getStatus() == Animation.Status.RUNNING;
}

代码示例来源:origin: jfoenixadmin/JFoenix

private boolean isErrorVisible() {
  return isVisible()
      && errorShowTransition.getStatus().equals(Animation.Status.STOPPED)
      && errorHideTransition.getStatus().equals(Animation.Status.STOPPED);
}

代码示例来源:origin: jfoenixadmin/JFoenix

/**
 * Animates the list to show/hide the nodes.
 */
public void animateList() {
  expanded = !expanded;
  if (animateTimeline.getStatus() == Status.RUNNING) {
    animateTimeline.stop();
  }
  animateTimeline.getKeyFrames().clear();
  createAnimation(expanded, animateTimeline);
  animateTimeline.play();
}

代码示例来源:origin: jfoenixadmin/JFoenix

derivatives[i] += direction * pushes[i];
if (timeline.getStatus() == Animation.Status.STOPPED) {
  timeline.play();

代码示例来源:origin: jfoenixadmin/JFoenix

if (hideErrorAnimation != null && hideErrorAnimation.getStatus() == Status.RUNNING) {
  hideErrorAnimation.stop();

代码示例来源:origin: torakiki/pdfsam

private void showTooltip() {
  if (activationTimer.getStatus() != Status.RUNNING) {
    activationTimer.stop();
    activationTimer.playFromStart();
  }
}

代码示例来源:origin: jfoenixadmin/JFoenix

public void animate() {
  updateListHeight();
  if (showTransition == null || showTransition.getStatus().equals(Status.STOPPED)) {
    if (scale == null) {
      scale = new Scale(1, 0);

代码示例来源:origin: jfoenixadmin/JFoenix

if (windowDecoratorAnimation.getStatus() == Animation.Status.RUNNING) {
  windowDecoratorAnimation.stop();
} else {

代码示例来源:origin: jfoenixadmin/JFoenix

click.consume();
if (expandAnimation != null && expandAnimation.getStatus() == Status.RUNNING) {
  expandAnimation.stop();

代码示例来源:origin: torakiki/pdfsam

void hasUnseenErrors(boolean value) {
    if (value) {
      if (!(anim.getStatus() == Status.RUNNING)) {
        anim.play();
      }
      if (!getStyleClass().contains(HAS_ERRORS_CSS_CLASS)) {
        getStyleClass().add(HAS_ERRORS_CSS_CLASS);
      }
    } else {
      getStyleClass().remove(HAS_ERRORS_CSS_CLASS);
      anim.stop();
      setRotate(0);
      setScaleY(1);
    }
  }
}

代码示例来源:origin: com.jfoenix/jfoenix

private boolean isAnimating() {
  return timeline != null && timeline.getStatus() == Animation.Status.RUNNING;
}

代码示例来源:origin: com.jfoenix/jfoenix

private boolean isErrorVisible() {
  return isVisible()
      && errorShowTransition.getStatus().equals(Animation.Status.STOPPED)
      && errorHideTransition.getStatus().equals(Animation.Status.STOPPED);
}

代码示例来源:origin: stackoverflow.com

if (e.getSceneY() < 0.03 * JavaFXApplication110.instance.stage.getScene().getHeight()) {
  this.vbox_slideview.setVisible(true);
  if (timeline.getStatus().equals(Animation.Status.STOPPED)) {
    timeline.play();

代码示例来源:origin: com.jfoenix/jfoenix

/**
 * Animates the list to show/hide the nodes.
 */
public void animateList() {
  expanded = !expanded;
  if (animateTimeline.getStatus() == Status.RUNNING) {
    animateTimeline.stop();
  }
  animateTimeline.getKeyFrames().clear();
  createAnimation(expanded, animateTimeline);
  animateTimeline.play();
}

代码示例来源:origin: stackoverflow.com

@Override
public void start(Stage primaryStage) {
  Button btn = new Button("Play / (Stop/Jump)");

  Timeline timeline = new Timeline(
      new KeyFrame(Duration.ZERO, new KeyValue(btn.translateXProperty(), 0d)),
      new KeyFrame(Duration.seconds(10), new KeyValue(btn.translateXProperty(), 200d))
  );

  btn.setOnAction((ActionEvent event) -> {
    if (timeline.getStatus() == Animation.Status.RUNNING) {
//            timeline.jumpTo("end");
      timeline.stop();
    } else {
      timeline.play();
    }
  });

  StackPane root = new StackPane();
  root.getChildren().add(btn);

  Scene scene = new Scene(root, 400, 400);

  primaryStage.setScene(scene);
  primaryStage.show();
}

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

this.acceleration = (int) Math.abs(event.getY());
this.positionUpdaterBottom.stop();
if( this.positionUpdaterTop.getStatus() != Status.RUNNING ) {
  this.positionUpdaterTop.playFromStart();
this.acceleration = (int) Math.abs( b.getMaxY() - event.getY());
this.positionUpdaterTop.stop();
if( this.positionUpdaterBottom.getStatus() != Status.RUNNING ) {
  this.positionUpdaterBottom.playFromStart();

代码示例来源:origin: org.controlsfx/controlsfx

private void show(Side side) {
  if (hideTimeline != null) {
    hideTimeline.stop();
  }
  if (showTimeline != null && showTimeline.getStatus() == Status.RUNNING) {
    return;
  }
  KeyValue[] keyValues = new KeyValue[Side.values().length];
  for (Side s : Side.values()) {
    keyValues[s.ordinal()] = new KeyValue(visibility[s.ordinal()],
        s.equals(side) ? 1 : 0);
  }
  Duration delay = getSkinnable().getAnimationDelay() != null ? getSkinnable()
      .getAnimationDelay() : Duration.millis(300);
  Duration duration = getSkinnable().getAnimationDuration() != null ? getSkinnable()
      .getAnimationDuration() : Duration.millis(200);
  KeyFrame keyFrame = new KeyFrame(duration, keyValues);
  showTimeline = new Timeline(keyFrame);
  showTimeline.setDelay(delay);
  showTimeline.play();
}

代码示例来源:origin: org.controlsfx/controlsfx

if (timeline != null && (timeline.getStatus() != Status.STOPPED)) {
  duration = timeline.getCurrentTime();
  timeline.stop();

代码示例来源:origin: org.controlsfx/controlsfx

if (hideTimeline != null && hideTimeline.getStatus() == Status.RUNNING) {
  return;

代码示例来源:origin: com.jfoenix/jfoenix

public void animate() {
  updateListHeight();
  if (showTransition == null || showTransition.getStatus().equals(Status.STOPPED)) {
    if (scale == null) {
      scale = new Scale(1, 0);

相关文章