Examples of brightnessProperty()


Examples of javafx.scene.effect.ColorAdjust.brightnessProperty()

        node.setCacheHint(CacheHint.SPEED);
        ColorAdjust adjust = new ColorAdjust();
        adjust.setBrightness(0.0);
        node.setEffect(adjust);
        Timeline timeline = new Timeline(new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC * 0.7),
                new KeyValue(adjust.brightnessProperty(), adjustment)));
        timeline.play();
    }

    public static void brightnessUnadjust(Node node) {
        ColorAdjust effect = (ColorAdjust) node.getEffect();
View Full Code Here

Examples of javafx.scene.effect.ColorAdjust.brightnessProperty()

    }

    public static void brightnessUnadjust(Node node) {
        ColorAdjust effect = (ColorAdjust) node.getEffect();
        Timeline timeline = new Timeline(new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC * 0.7),
                new KeyValue(effect.brightnessProperty(), 0.0)));
        timeline.setOnFinished(ev -> node.setCache(false));
        timeline.play();
    }

    public static void checkGuiThread() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.