Package javafx.scene.image

Examples of javafx.scene.image.ImageView


                    if (bef != null) {
                        //DLL
                    } else {

                        TreeItem<String> n = new TreeItem<>(name);
                        ImageView iv = new ImageView(Utility.getImage("plus_24.png"));
                        n.setGraphic(iv);

                        result.getChildren().add(n);

                        __proc_over++;
                    }
                }
            } else {
                Utility.log("__curr_proc null");
            }

            if (__saved_proc != null) {
                for (EncryptedNode nsal : __saved_proc) {
                    EncryptedNode min = this.evalNodesList(__curr_proc, nsal);
                    if (min == null) {

                        Map<String, String> m = nsal.getProperties();
                        String name = (m.containsKey("name") ? m.get("name") : "...");

                        name = escaper.unescapeValue(name);

                        TreeItem<String> n = new TreeItem<>(name);
                        ImageView iv = new ImageView(Utility.getImage("minus_24.png"));
                        n.setGraphic(iv);
                        result.getChildren().add(n);

                        __proc_less++;
                    }
View Full Code Here


                    }
                }

            });

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

            txt_search.setOnKeyReleased((KeyEvent ke) -> {
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);

        ImageView icn_login_logo = (ImageView) getFromCacheNode("icn_login_logo");
        icn_login_logo.setImage(getImage(ICN_OFFICIAL64));

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

            @Override protected void updateItem(Item item, boolean empty) {
                super.updateItem(item, empty);
                setGraphic(null);
                setText(null);
                if (item != null && !empty) {
                    ImageView imm = new ImageView(item.getImage());
                    label.setGraphic(imm);
                    setGraphic(label);
                    if (Constants.NO_BOOKMARK.equals(item.getName())) {
                        setText(RBLoader.ll(Constants.NO_BOOKMARK));
                    }
View Full Code Here

                UtilityFX.exc(ex);
                ex.printStackTrace();
            }

            try {
                __imm = new ImageView(UtilityFX.getImage(icon));
                __button.setGraphic(__imm);
            } catch (Exception exc) {
                UtilityFX.exc(exc);
                exc.printStackTrace();
            }

            String txt_lite = RBLoader.ll(txt);

            if (!tooltip) {

                setStyle("-fx-background-color: " + color + "; "
                        + "-fx-border-width: " + border_width + "; "
                        + "-fx-border-color: white;");

                __label = new Text(" " + txt_lite);
                __label.setId("toolbar_label");
                __label.setStyle("-fx-background-color: " + color + ";"
                        + "-fx-font-size: 10px;"
                        + "-fx-font-weight: bold;");
                __label.setFill(Color.WHITE);
                __label.setTextAlignment(TextAlignment.LEFT);
                __label.setFontSmoothingType(FontSmoothingType.LCD);

                BorderPane bp = new BorderPane();
                bp.setCenter(UtilityFX.sep());
                bp.setBottom(__label);
                setBottom(bp);
            } else {

                setStyle("-fx-background-color: " + color + "; "
                        + "-fx-border-width: 1; "
                        + "-fx-border-color: " + DEF_COLOR_BTN + ";");

                final Tooltip tt = new Tooltip();
                tt.setText(txt_lite);
                tt.setGraphic(new ImageView(UtilityFX.getImage(icon)));
                __button.setTooltip(tt);
            }

            setCenter(__button);
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);

        ImageView icn_login_logo = (ImageView) getFromCacheNode("icn_login_logo");
        icn_login_logo.setImage(getImage(ICN_OFFICIAL64));

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

    public InternalPopupMessage setIcon(Image image) {
        if (image == null) {
            return this;
        }
        icon = new ImageView();
        icon.setImage(image);
        EffectFX.dropShadowEffect(icon, 1, 1);
        return this;
    }
View Full Code Here

    public InternalPopupMessage setOkButton(String ok) {
        if (ok == null) {
            return this;
        }
        ok_btn = new Button(RBLoader.ll(ok));
        ok_btn.setGraphic(new ImageView(UtilityFX.getImage("checkmark_24.png")));
        ok_btn.setPrefSize(115, 25);
        ok_btn.setOnAction((ActionEvent e) -> {
            okPressed();
        });
        return this;
View Full Code Here

        if (cancel == null) {
            return this;
        }
        setOkButton(RBLoader.ll(ok));
        cancel_btn = new Button(RBLoader.ll(cancel));
        cancel_btn.setGraphic(new ImageView(UtilityFX.getImage("delete_24.png")));
        cancel_btn.setPrefSize(115, 25);
        cancel_btn.setOnAction((ActionEvent e) -> {
            cancelPressed();
        });
        return this;
View Full Code Here

                setGraphic(null);
            } else {
                HBox hbox = new HBox();
                hbox.setPadding(new Insets(0, 0, 0, 0));
                hbox.setSpacing(12);
                hbox.getChildren().add(new ImageView(image));
                /*
                 if (PASS_IMG.equals(image)) {
                 hbox.getChildren().add(new Label(RBLoader.ll("Password")));
                 } else if (CLEAR_IMG.equals(image)) {
                 hbox.getChildren().add(new Label(RBLoader.ll("Show")));
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.