@Override public void dispose() { this.control = null; if (showTransition != null) { showTransition.stop(); showTransition.getKeyFrames().clear(); showTransition = null; } } }
private void clearAnimation() { if (timeline != null) { timeline.stop(); timeline.getKeyFrames().clear(); timeline = null; } } }
private void clearAnimation() { if (timeline != null) { timeline.stop(); timeline.getKeyFrames().clear(); timeline = null; } }
/** * {@inheritDoc} */ @Override protected void interpolate(double d) { timeline.get().playFrom(Duration.seconds(d)); timeline.get().stop(); } }
@Override public <U> void setViewContext(ViewContext<U> context) { updatePlaceholder(context.getRootNode()); if (animation != null) { animation.stop(); } animation = new Timeline(); animation.getKeyFrames().addAll(animationProducer.apply(this)); animation.getKeyFrames().add(new KeyFrame(duration, (e) -> clearPlaceholder())); animation.play(); }
/** * 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(); }
final EventHandler<MouseEvent> dragHandler = event -> timeline.stop(); final EventHandler<ScrollEvent> scrollHandler = event -> { if (event.getEventType() == ScrollEvent.SCROLL) { scrollDriection.set(Math.min(Math.max(scrollDriection.get() + dy / size, 0), 1)); if (Math.abs(dy) < 0.001) { timeline.stop();
arrowAnimation.play(); }); container.setOnMouseReleased(release -> arrowAnimation.stop()); JFXRippler arrowRippler = new JFXRippler(container, RipplerMask.CIRCLE, RipplerPos.BACK); arrowRippler.setPadding(new Insets(0, 5, 0, 5));
if (!isDisableAnimation()) { if (hideErrorAnimation != null && hideErrorAnimation.getStatus() == Status.RUNNING) { hideErrorAnimation.stop();
private void showTooltip() { if (activationTimer.getStatus() != Status.RUNNING) { activationTimer.stop(); activationTimer.playFromStart(); } }
timeline.stop(); timeline.getKeyFrames().clear();
timeline.stop(); tempScaleX = scale.getX(); if (rotate.getAngle() != 0) {
} else { if (gapAnimation != null) { gapAnimation.stop();
public void close() { if (openAnimation != null) { openAnimation.stop();
/** * Sets the button in upToDate state or else, based on the input value * * @param value */ public void setUpToDate(boolean value) { if (value) { getStyleClass().remove(UP_TO_DATE_CSS_CLASS); anim.stop(); setRotate(0); setScaleY(1); } else { getStyleClass().add(UP_TO_DATE_CSS_CLASS); anim.play(); } }
expandAnimation.stop();
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); } } }
/** * {@inheritDoc} */ @Override protected void interpolate(double d) { timeline.get().playFrom(Duration.seconds(d)); timeline.get().stop(); } }