Java Code Examples for javafx.scene.Node#setCache()

The following examples show how to use javafx.scene.Node#setCache() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GuiUtils.java    From green_android with GNU General Public License v3.0 5 votes vote down vote up
public static Animation fadeIn(Node ui, int delayMillis) {
    ui.setCache(true);
    FadeTransition ft = new FadeTransition(Duration.millis(UI_ANIMATION_TIME_MSEC), ui);
    ft.setFromValue(0.0);
    ft.setToValue(1.0);
    ft.setOnFinished(ev -> ui.setCache(false));
    ft.setDelay(Duration.millis(delayMillis));
    ft.play();
    return ft;
}
 
Example 2
Source File: GuiUtils.java    From thunder with GNU Affero General Public License v3.0 5 votes vote down vote up
public static Animation fadeIn (Node ui, int delayMillis) {
    ui.setCache(true);
    FadeTransition ft = new FadeTransition(Duration.millis(UI_ANIMATION_TIME_MSEC), ui);
    ft.setFromValue(0.0);
    ft.setToValue(1.0);
    ft.setOnFinished(ev -> ui.setCache(false));
    ft.setDelay(Duration.millis(delayMillis));
    ft.play();
    return ft;
}
 
Example 3
Source File: GuiUtils.java    From GreenBits with GNU General Public License v3.0 5 votes vote down vote up
public static Animation fadeIn(Node ui, int delayMillis) {
    ui.setCache(true);
    FadeTransition ft = new FadeTransition(Duration.millis(UI_ANIMATION_TIME_MSEC), ui);
    ft.setFromValue(0.0);
    ft.setToValue(1.0);
    ft.setOnFinished(ev -> ui.setCache(false));
    ft.setDelay(Duration.millis(delayMillis));
    ft.play();
    return ft;
}
 
Example 4
Source File: GuiUtils.java    From devcoretalk with GNU General Public License v2.0 5 votes vote down vote up
public static Animation fadeIn(Node ui, int delayMillis) {
    ui.setCache(true);
    FadeTransition ft = new FadeTransition(Duration.millis(UI_ANIMATION_TIME_MSEC), ui);
    ft.setFromValue(0.0);
    ft.setToValue(1.0);
    ft.setOnFinished(ev -> ui.setCache(false));
    ft.setDelay(Duration.millis(delayMillis));
    ft.play();
    return ft;
}
 
Example 5
Source File: GuiUtils.java    From thundernetwork with GNU Affero General Public License v3.0 5 votes vote down vote up
public static Animation fadeIn(Node ui, int delayMillis) {
    ui.setCache(true);
    FadeTransition ft = new FadeTransition(Duration.millis(UI_ANIMATION_TIME_MSEC), ui);
    ft.setFromValue(0.0);
    ft.setToValue(1.0);
    ft.setOnFinished(ev -> ui.setCache(false));
    ft.setDelay(Duration.millis(delayMillis));
    ft.play();
    return ft;
}