本文整理了Java中javafx.animation.Timeline.stop()
方法的一些代码示例,展示了Timeline.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timeline.stop()
方法的具体详情如下:
包路径:javafx.animation.Timeline
类名称:Timeline
方法名:stop
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
@Override
public void dispose() {
this.control = null;
if (showTransition != null) {
showTransition.stop();
showTransition.getKeyFrames().clear();
showTransition = null;
}
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
private void clearAnimation() {
if (timeline != null) {
timeline.stop();
timeline.getKeyFrames().clear();
timeline = null;
}
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
private void clearAnimation() {
if (timeline != null) {
timeline.stop();
timeline.getKeyFrames().clear();
timeline = null;
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
/**
* {@inheritDoc}
*/
@Override
protected void interpolate(double d) {
timeline.get().playFrom(Duration.seconds(d));
timeline.get().stop();
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@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();
}
代码示例来源: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
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();
代码示例来源:origin: jfoenixadmin/JFoenix
arrowAnimation.play();
});
container.setOnMouseReleased(release -> arrowAnimation.stop());
JFXRippler arrowRippler = new JFXRippler(container, RipplerMask.CIRCLE, RipplerPos.BACK);
arrowRippler.setPadding(new Insets(0, 5, 0, 5));
代码示例来源:origin: jfoenixadmin/JFoenix
contentPlaceHolder.setBorder(Border.EMPTY);
if (windowDecoratorAnimation != null) {
windowDecoratorAnimation.stop();
windowDecoratorAnimation.stop();
} else {
this.getChildren().add(0, buttonsContainer);
代码示例来源:origin: jfoenixadmin/JFoenix
if (!isDisableAnimation()) {
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
timeline.stop();
timeline.getKeyFrames().clear();
代码示例来源:origin: jfoenixadmin/JFoenix
timeline.stop();
tempScaleX = scale.getX();
if (rotate.getAngle() != 0) {
代码示例来源:origin: jfoenixadmin/JFoenix
} else {
if (gapAnimation != null) {
gapAnimation.stop();
代码示例来源:origin: jfoenixadmin/JFoenix
public void close() {
if (openAnimation != null) {
openAnimation.stop();
代码示例来源:origin: torakiki/pdfsam
/**
* 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();
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
expandAnimation.stop();
代码示例来源:origin: stackoverflow.com
slideOut.stop();
slideIn.play();
});
slideIn.stop();
slideOut.play();
content.setVisible(false);
slideOut.stop();
slideIn.play();
} else {
slideIn.stop();
slideOut.play();
content.setVisible(false);
代码示例来源: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
/**
* {@inheritDoc}
*/
@Override
protected void interpolate(double d) {
timeline.get().playFrom(Duration.seconds(d));
timeline.get().stop();
}
}
内容来源于网络,如有侵权,请联系作者删除!