本文整理汇总了Java中wallettemplate.utils.easing.ElasticInterpolator类的典型用法代码示例。如果您正苦于以下问题:Java ElasticInterpolator类的具体用法?Java ElasticInterpolator怎么用?Java ElasticInterpolator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ElasticInterpolator类属于wallettemplate.utils.easing包,在下文中一共展示了ElasticInterpolator类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readyToGoAnimation
import wallettemplate.utils.easing.ElasticInterpolator; //导入依赖的package包/类
public void readyToGoAnimation() {
// Buttons slide in and clickable address appears simultaneously.
TranslateTransition arrive = new TranslateTransition(Duration.millis(1200), controlsBox);
arrive.setInterpolator(new ElasticInterpolator(EasingMode.EASE_OUT, 1, 2));
arrive.setToY(0.0);
FadeTransition reveal = new FadeTransition(Duration.millis(1200), addressControl);
reveal.setToValue(1.0);
ParallelTransition group = new ParallelTransition(arrive, reveal);
group.setDelay(NotificationBarPane.ANIM_OUT_DURATION);
group.setCycleCount(1);
group.play();
}