Example usage for javafx.animation FadeTransition setAutoReverse

List of usage examples for javafx.animation FadeTransition setAutoReverse

Introduction

In this page you can find the example usage for javafx.animation FadeTransition setAutoReverse.

Prototype

public final void setAutoReverse(boolean value) 

Source Link

Usage

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.  j  a v a 2s .co  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);
    ft.setToValue(0.5);//  www .  ja  va 2s . c o m
    ft.play();
}