Package javafx.scene.image

Examples of javafx.scene.image.ImageView


    @Override public void init() {
        backgroundImage = Util.createGrayNoise(256, 256, Color.rgb(145, 145, 145), Color.rgb(160, 160, 160));
    }

    @Override public void start(Stage stage) {
        ImageView imgView = new ImageView(backgroundImage);

        PushButton button1 = PushButtonBuilder.create()
                                              .status(PushButton.Status.DESELECTED)
                                              .color(Color.CYAN)
                                              .prefWidth(128)
View Full Code Here


        secondRight          = QlockTwo.SecondsRight.ZERO;
        oldMinute            = 0;
        timeZoneOffsetHour   = 0;
        timeZoneOffsetMinute = 0;
        texture              = new BrushedMetalPaint(Color.web("#888888"));
        stainlessBackground  = new ImageView();
        pane                 = new Pane();
        lastTimerCall        = System.nanoTime();
        timer = new AnimationTimer() {
            @Override public void handle(long now) {
                if (now > lastTimerCall + 1_000_000_000l) {
View Full Code Here

        return DESTINATION;
    }

    public ImageView getImageView(final double W, final double H, final Shape CLIP) {
        final Image IMAGE = getImage(W, H);
        final ImageView IMAGE_VIEW = new ImageView(IMAGE);
        IMAGE_VIEW.setClip(CLIP);
        return IMAGE_VIEW;
    }
View Full Code Here

            setMaxSize(MAXIMUM_WIDTH, MAXIMUM_HEIGHT);
        }
    }

    private void initGraphics() {
        background = new ImageView(BACKGROUND);
        background.setFitWidth(DEFAULT_WIDTH);
        background.setFitHeight(DEFAULT_HEIGHT);
        background.setPreserveRatio(true);
        background.setSmooth(true);
        background.setCache(true);

        flap = new ImageView(FLAP);
        flap.setFitWidth(DEFAULT_WIDTH * 0.8461538462);
        flap.setFitHeight(DEFAULT_HEIGHT * 0.407960199);
        flap.setPreserveRatio(true);
        flap.setSmooth(true);
        flap.setTranslateX(DEFAULT_HEIGHT * 0.0447761194);
 
View Full Code Here

        setState(State.CLOSED);
        mainMenuButton.setOpen(false);
    }

    private ImageView createThumbnail(final MenuItem ITEM) {
        ImageView imageItem = new ImageView(new Image(ITEM.getThumbnailImageName()));
        imageItem.setFitWidth(ITEM.getSize() * 0.5);
        imageItem.setFitHeight(ITEM.getSize() * 0.5);
        imageItem.setMouseTransparent(true);

        return imageItem;
    }
View Full Code Here

        export_lbl_header.setText(RBLoader.ll("Here you can export or import your accounts and notes in Zip format or a readable JSON."));
        export_btn_exzip.setText(RBLoader.ll("Export to Zip (MakiPass format)"));
        export_btn_exjson.setText(RBLoader.ll("Export to JSON (readable format)"));
        export_btn_exec.setText(RBLoader.ll("Import from Zip or JSON"));

        export_btn_exzip.setGraphic(new ImageView(UtilityFX.getImage("arrow_up_24.png")));
        export_btn_exzip.setOnAction((ActionEvent e) -> {
            try {
                File f = manager.openSaveFileChooser(getInitFile().toString());
                if (f != null) {
                    manager.exportDataInZip(f);
                    manager.createPopupMessage("export_plugin_ok_operation")
                            .setHeader("")
                            .setContent("Export completed successfully.")
                            .setOkButton("Ok")
                            .setIcon(UtilityFX.getImage("info_24.png"))
                            .show();
                }
            } catch (Exception exc) {
                exc(exc);
                manager.createPopupMessage("export_plugin_err_operation")
                        .setHeader("Error.")
                        .setContent(exc.getMessage())
                        .setOkButton("Ok")
                        .setIcon(UtilityFX.getImage("info_24.png"))
                        .show();
            }
        });

        export_btn_exjson.setGraphic(new ImageView(UtilityFX.getImage("arrow_up_24.png")));
        export_btn_exjson.setOnAction((ActionEvent e) -> {
            try {
                File f = manager.openSaveFileChooser(getInitFile().toString());
                if (f != null) {
                    manager.exportDataInClear(f);
                    manager.createPopupMessage("export_plugin_ok_operation")
                            .setHeader("")
                            .setContent("Export completed successfully.")
                            .setOkButton("Ok")
                            .setIcon(UtilityFX.getImage("info_24.png"))
                            .show();
                }
            } catch (Exception exc) {
                exc(exc);
                manager.createPopupMessage("export_plugin_err_operation")
                        .setHeader("Error.")
                        .setContent(exc.getMessage())
                        .setOkButton("Ok")
                        .setIcon(UtilityFX.getImage("info_24.png"))
                        .show();
            }
        });

        export_btn_exec.setGraphic(new ImageView(UtilityFX.getImage("inbox_48.png")));
        export_btn_exec.setOnAction((ActionEvent e) -> {
            manager.createPopupMessage("export_plugin_question_operation", new AnswarePopupMessage() {

                @Override
                public void onOkAnsware() {
View Full Code Here

        export_lbl_header.setText(RBLoader.ll("Here you can export or import your accounts and notes in Zip format or a readable JSON."));
        export_btn_exzip.setText(RBLoader.ll("Export to Zip (MakiPass format)"));
        export_btn_exjson.setText(RBLoader.ll("Export to JSON (readable format)"));
        export_btn_exec.setText(RBLoader.ll("Import from Zip or JSON"));

        export_btn_exzip.setGraphic(new ImageView(Utility.getImage("arrow_up_24.png")));
        export_btn_exzip.setOnAction((ActionEvent e) -> {
            try {
                File f = manager.openSaveFileChooser(getInitFile().toString());
                if (f != null) {
                    manager.exportDataInZip(f);
                    manager.createPopupMessage("export_plugin_ok_operation")
                            .setHeader("")
                            .setContent("Export completed successfully.")
                            .setOkButton("Ok")
                            .setIcon(Utility.getImage("info_24.png"))
                            .show();
                }
            } catch (Exception exc) {
                exc(exc);
                manager.createPopupMessage("export_plugin_err_operation")
                        .setHeader("Error.")
                        .setContent(exc.getMessage())
                        .setOkButton("Ok")
                        .setIcon(Utility.getImage("info_24.png"))
                        .show();
            }
        });

        export_btn_exjson.setGraphic(new ImageView(Utility.getImage("arrow_up_24.png")));
        export_btn_exjson.setOnAction((ActionEvent e) -> {
            try {
                File f = manager.openSaveFileChooser(getInitFile().toString());
                if (f != null) {
                    manager.exportDataInClear(f);
                    manager.createPopupMessage("export_plugin_ok_operation")
                            .setHeader("")
                            .setContent("Export completed successfully.")
                            .setOkButton("Ok")
                            .setIcon(Utility.getImage("info_24.png"))
                            .show();
                }
            } catch (Exception exc) {
                exc(exc);
                manager.createPopupMessage("export_plugin_err_operation")
                        .setHeader("Error.")
                        .setContent(exc.getMessage())
                        .setOkButton("Ok")
                        .setIcon(Utility.getImage("info_24.png"))
                        .show();
            }
        });

        export_btn_exec.setGraphic(new ImageView(Utility.getImage("inbox_48.png")));
        export_btn_exec.setOnAction((ActionEvent e) -> {
            manager.createPopupMessage("export_plugin_question_operation", new AnswarePopupMessage() {

                @Override
                public void onOkAnsware() {
View Full Code Here

        // Imposto il primo scene, la GUI NON E' RIDIMENSIONABILE
        stage.setScene(scene);
        stage.setResizable(false);
        stage.setTitle(TITLE);

        ImageView icn_login_tips = (ImageView) getFromCacheNode("icn_login_tips");
        icn_login_tips.setVisible(false);

        /**
         * Con l'utility getFromCacheNode e' possibile caricare un oggetto
         * grafico, precedentemente inserito tramite l'apposita classe
         * controller.
 
View Full Code Here

                    }
                }

            });

            ImageView icn_search = (ImageView) Utility.getFromCacheNode("icn_search");
            icn_search.setImage(Utility.getImage("magnifier_24.png"));
            txt_search = (TextField) Utility.getFromCacheNode("txt_search");
            txt_search.setText("");
            txt_search.setStyle("-fx-text-fill: black");

            txt_search.setOnKeyReleased((KeyEvent ke) -> {
View Full Code Here

            item.getChildren().add(n);

            if (root.getChilds().get(i).isLeaf()) {
                String val = map.get("presence");
                if ("IN_PIU".equals(val)) {
                    n.setGraphic(new ImageView(Utility.getImage("plus_24.png")));
                } else {
                    n.setGraphic(new ImageView(Utility.getImage("minus_24.png")));
                }
            } else {
                n.setGraphic(new ImageView(Utility.getImage("folder_24.png")));
                buildTree_OLD(n, root.getChilds().get(i));
            }
        }
    }
View Full Code Here

TOP

Related Classes of javafx.scene.image.ImageView

Copyright © 2018 www.massapicom. 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.