Examples of saturationProperty()


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

            case CLAIMED:
                actionButton.setText("View claim transaction");
                ColorAdjust effect = new ColorAdjust();
                coverImage.setEffect(effect);
                if (priorMode != Mode.CLAIMED) {
                    Timeline timeline = new Timeline(new KeyFrame(GuiUtils.UI_ANIMATION_TIME.multiply(3), new KeyValue(effect.saturationProperty(), -0.9)));
                    timeline.play();
                } else {
                    effect.setSaturation(-0.9);
                }
                break;
View Full Code Here

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

        isLoading = new SimpleBooleanProperty();

        // Make the cover image go grey when claimed and blurred when loading. Make a loading indicator fade in/out.
        final Image image = new Image(project.getCoverImage().newInput());
        ColorAdjust colorAdjust = new ColorAdjust();
        colorAdjust.saturationProperty().bind(when(equal(state, LighthouseBackend.ProjectState.CLAIMED)).then(-0.9).otherwise(0.0));
        if (GuiUtils.isSoftwarePipeline()) {
            // SW pipeline cannot handle gaussian blurs with acceptable performance.
            coverImage.setEffect(colorAdjust);
        } else {
            GaussianBlur blur = new GaussianBlur();
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.