List of usage examples for javafx.animation FadeTransition play
public void play()
From source file:view.EditorView.java
private void compassImageFadeOut() { FadeTransition ft = new FadeTransition(Duration.millis(250), compassImage); ft.setFromValue(compassImage.getOpacity()); ft.setToValue(0.2);/* w ww .ja v a2s .c o m*/ ft.setAutoReverse(false); ft.play(); }
From source file:view.EditorView.java
private void compassImageFadeIn() { FadeTransition ft = new FadeTransition(Duration.millis(250), compassImage); ft.setFromValue(compassImage.getOpacity()); ft.setAutoReverse(false);/*from ww w .j a v a2s.c o m*/ ft.setToValue(0.5); ft.play(); }
From source file:Watcher.FXMLDocumentController.java
private void fadeout(boolean inpB) { if (inpB) {/* w w w. j ava2s . co m*/ javafx.animation.FadeTransition ft = new FadeTransition(Duration.millis(200), fadeOutPane); ft.setCycleCount(1); ft.setFromValue(0); ft.setToValue(0.7); fadeOutPane.setVisible(true); ft.play(); } else { javafx.animation.FadeTransition ft = new FadeTransition(Duration.millis(200), fadeOutPane); ft.setCycleCount(1); ft.setFromValue(0.7); ft.setToValue(0); ft.play(); fadeOutPane.setVisible(false); } }