This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class AnimatedBindInfo { | |
| @Nullable public Timeline timeline; | |
| public NumberBinding bindFrom; | |
| public Runnable onAnimFinish; | |
| } | |
| public static AnimatedBindInfo animatedBind(Node node, WritableDoubleValue bindTo, NumberBinding bindFrom) { | |
| bindTo.set(bindFrom.doubleValue()); // Initialise. | |
| bindFrom.addListener((o, prev, cur) -> { | |
| AnimatedBindInfo info = (AnimatedBindInfo) node.getUserData(); |