1, EASE_BOTH))); animation.setDelay(Duration.millis(100 * i + 1000)); animation.play(); child.getChildren().addAll(content, button);
endingFrame); timeline.setCycleCount(Timeline.INDEFINITE); timeline.setDelay(Duration.ZERO); timeline.playFromStart();
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);
timeline.setDelay(creatorConfig.getDelay()); timeline.setRate(creatorConfig.getRate()); timeline.setOnFinished(creatorConfig::handleOnFinish);
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; }
timeline.setDelay( Duration.millis( random.nextInt( 2000 ) + 100 ) );
new KeyValue(node.rotateProperty(), 0, EASE_BOTH))); timeline.setCycleCount(Timeline.INDEFINITE); timeline.setDelay(Duration.millis(2000)); return timeline;
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(); }
hideTimeline.setDelay(delay); hideTimeline.play();
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);
endingFrame); timeline.setCycleCount(Timeline.INDEFINITE); timeline.setDelay(Duration.ZERO); timeline.playFromStart();