blob: c24e10fb11e4c3af7658d5294a53d8b658c0a178 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package fallTest;
import javafx.animation.*;
import javafx.util.Duration;
public class NoteNode {
private NoteField info;
private Block vis;
TranslateTransition anim = new TranslateTransition(Duration.millis(TIME));
public NoteNode(NoteField newInfo, Block newVis) {
vis=newVis;
info = newInfo;
anim.setNode(vis);
anim.setByY();
anim.setCycleCount(1);
anim.setAutoReverse(false);
anim.play();
}
}
|