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

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

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

Timeline.setDelay介绍

暂无

代码示例

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

1,
                              EASE_BOTH)));
animation.setDelay(Duration.millis(100 * i + 1000));
animation.play();
child.getChildren().addAll(content, button);

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

endingFrame);
timeline.setCycleCount(Timeline.INDEFINITE);
timeline.setDelay(Duration.ZERO);
timeline.playFromStart();

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

new KeyValue(cell.opacityProperty(), 1, Interpolator.EASE_BOTH),
  new KeyValue(cell.translateYProperty(), 0, Interpolator.EASE_BOTH)));
f.setDelay(Duration.millis(index * 20));
trans.getChildren().add(f);

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

timeline.setDelay(creatorConfig.getDelay());
timeline.setRate(creatorConfig.getRate());
timeline.setOnFinished(creatorConfig::handleOnFinish);

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

private Timeline createHideTimeline(final Popup popup, NotificationBar bar, final Pos p, Duration startDelay) {
  KeyValue fadeOutBegin = new KeyValue(bar.opacityProperty(), 1.0);
  KeyValue fadeOutEnd = new KeyValue(bar.opacityProperty(), 0.0);
  KeyFrame kfBegin = new KeyFrame(Duration.ZERO, fadeOutBegin);
  KeyFrame kfEnd = new KeyFrame(Duration.millis(500), fadeOutEnd);
  Timeline timeline = new Timeline(kfBegin, kfEnd);
  timeline.setDelay(startDelay);
  timeline.setOnFinished(new EventHandler<ActionEvent>() {
    @Override
    public void handle(ActionEvent e) {
      hide(popup, p);
    }
  });
  return timeline;
}

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

timeline.setDelay( Duration.millis( random.nextInt( 2000 ) + 100 ) );

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

new KeyValue(node.rotateProperty(), 0, EASE_BOTH)));
timeline.setCycleCount(Timeline.INDEFINITE);
timeline.setDelay(Duration.millis(2000));
return timeline;

代码示例来源: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

hideTimeline.setDelay(delay);
hideTimeline.play();

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

new KeyValue(cell.opacityProperty(), 1, Interpolator.EASE_BOTH),
  new KeyValue(cell.translateYProperty(), 0, Interpolator.EASE_BOTH)));
f.setDelay(Duration.millis(index * 20));
trans.getChildren().add(f);

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

endingFrame);
timeline.setCycleCount(Timeline.INDEFINITE);
timeline.setDelay(Duration.ZERO);
timeline.playFromStart();

相关文章