Package javafx.scene.image

Examples of javafx.scene.image.Image


         * Footer
         */
        HBox footerBox = new HBox();
        footerBox.setSpacing(5);
        footerBox.setAlignment(Pos.BOTTOM_LEFT);
        Image image = new Image(AquaFx.class.getResource("demo/images/lock_open.png").toExternalForm());
        ImageView lockView = new ImageView(image);
        lockView.setPreserveRatio(true);
        lockView.setFitHeight(36);
        footerBox.getChildren().add(lockView);
        Label info = new Label("Zum Sch\u00FCtzen auf das Schloss klicken.");
View Full Code Here


        TabPane tabPane = new TabPane();
        tabPane.setPrefWidth(218);
        AquaFx.createTabPaneStyler().setType(TabPaneType.SMALL_ICON_BUTTONS).style(tabPane);

        Tab tab1 = new Tab();
        Image image = new Image(AquaFx.class.getResource("demo/images/pages/pages.png").toExternalForm());
        ImageView pages = new ImageView(image);
        pages.setPreserveRatio(true);
        pages.setFitHeight(16);
        tab1.setGraphic(pages);
        Label label = new Label("Dokument...");
        label.setPadding(new Insets(15));
        tab1.setContent(label);
        tabPane.getTabs().add(tab1);

        Tab tab2 = new Tab();
        Image image2 = new Image(AquaFx.class.getResource("demo/images/pages/layout.png").toExternalForm());
        ImageView layout = new ImageView(image2);
        layout.setPreserveRatio(true);
        layout.setFitHeight(16);
        tab2.setGraphic(layout);
        Label label2 = new Label("layout");
        label2.setPadding(new Insets(15));
        tab2.setContent(label2);
        tabPane.getTabs().add(tab2);

        Tab tab3 = new Tab();
        Image image3 = new Image(AquaFx.class.getResource("demo/images/pages/umbruch.png").toExternalForm());
        ImageView umbruch = new ImageView(image3);
        umbruch.setPreserveRatio(true);
        umbruch.setFitHeight(16);
        tab3.setGraphic(umbruch);
        Label label3 = new Label("Zeilenumbruch...");
        label3.setPadding(new Insets(15));
        tab3.setContent(label3);
        tabPane.getTabs().add(tab3);

        Tab tab4 = new Tab();
        Image image4 = new Image(AquaFx.class.getResource("demo/images/pages/text.png").toExternalForm());
        ImageView text = new ImageView(image4);
        text.setPreserveRatio(true);
        text.setFitHeight(16);
        tab4.setGraphic(text);
        Label label4 = new Label("Zeilenumbruch...");
        label4.setPadding(new Insets(15));
        tab4.setContent(label4);
        tabPane.getTabs().add(tab4);

        Tab tab5 = new Tab();
        Image image5 = new Image(AquaFx.class.getResource("demo/images/pages/grafik.png").toExternalForm());
        ImageView grafik = new ImageView(image5);
        grafik.setPreserveRatio(true);
        grafik.setFitHeight(16);
        tab5.setGraphic(grafik);
        Label label5 = new Label("Zeilenumbruch...");
        label5.setPadding(new Insets(15));
        tab5.setContent(label5);
        tabPane.getTabs().add(tab5);

        Tab tab6 = new Tab();
        Image image6 = new Image(AquaFx.class.getResource("demo/images/pages/lineal.png").toExternalForm());
        ImageView lineal = new ImageView(image6);
        lineal.setPreserveRatio(true);
        lineal.setFitHeight(16);
        tab6.setGraphic(lineal);
        Label label6 = new Label("Lienal lineal lineal lineal lineal...");
        label6.setPadding(new Insets(15));
        tab6.setContent(label6);
        tabPane.getTabs().add(tab6);

        Tab tab7 = new Tab();
        Image image7 = new Image(AquaFx.class.getResource("demo/images/pages/diagramm.png").toExternalForm());
        ImageView diagramm = new ImageView(image7);
        diagramm.setPreserveRatio(true);
        diagramm.setFitHeight(16);
        tab7.setGraphic(diagramm);
        Label label7 = new Label("diagramm...");
        label7.setPadding(new Insets(15));
        tab7.setContent(label7);
        tabPane.getTabs().add(tab7);

        Tab tab8 = new Tab();
        Image image8 = new Image(AquaFx.class.getResource("demo/images/pages/verknuepfung.png").toExternalForm());
        ImageView verknuepfung = new ImageView(image8);
        verknuepfung.setPreserveRatio(true);
        verknuepfung.setFitHeight(16);
        tab8.setGraphic(verknuepfung);
        Label label8 = new Label("verknuepfung...");
        label8.setPadding(new Insets(15));
        tab8.setContent(label8);
        tabPane.getTabs().add(tab8);

        Tab tab9 = new Tab();
        Image image9 = new Image(AquaFx.class.getResource("demo/images/pages/quicktime.png").toExternalForm());
        ImageView quicktime = new ImageView(image9);
        quicktime.setPreserveRatio(true);
        quicktime.setFitHeight(16);
        tab9.setGraphic(quicktime);
        Label label9 = new Label("quicktime...");
View Full Code Here

         */
        TabPane tabPane = new TabPane();
        AquaFx.createTabPaneStyler().setType(TabPaneType.ICON_BUTTONS).style(tabPane);

        Tab tab1 = new Tab("Allgemein");
        Image image = new Image(AquaFx.class.getResource("demo/images/preferences/allgemein.png").toExternalForm());
        ImageView pages = new ImageView(image);
        pages.setPreserveRatio(true);
        pages.setFitHeight(36);
        tab1.setGraphic(pages);
        Label label =new Label("Allgemein...");
        label.setPadding(new Insets(15));
        tab1.setContent(label);
        tabPane.getTabs().add(tab1);

        Tab tab2 = new Tab("Etiketten");
        Image image2 = new Image(AquaFx.class.getResource("demo/images/preferences/labels.png").toExternalForm());
        ImageView layout =  new ImageView(image2);
        layout.setPreserveRatio(true);
        layout.setFitHeight(36);
        tab2.setGraphic(layout);
        Label label2 = new Label("Etiketten");
        label2.setPadding(new Insets(15));
        tab2.setContent(label2);
        tabPane.getTabs().add(tab2);

        Tab tab3 = new Tab("Seitenleiste");
        Image image3 = new Image(AquaFx.class.getResource("demo/images/preferences/seitenleiste.png").toExternalForm());
        ImageView umbruch = new ImageView(image3);
        umbruch.setPreserveRatio(true);
        umbruch.setFitHeight(36);
        tab3.setGraphic(umbruch);
        Label label3 = new Label("seitenleiste...");
        label3.setPadding(new Insets(15));
        tab3.setContent(label3);
        tabPane.getTabs().add(tab3);

        Tab tab4 = new Tab("Erweitert");
        Image image4 = new Image(AquaFx.class.getResource("demo/images/preferences/einstellungen.png").toExternalForm());
        ImageView text = new ImageView(image4);
        text.setPreserveRatio(true);
        text.setFitHeight(36);
        tab4.setGraphic(text);

View Full Code Here

         */
        HBox footerBox = new HBox();
        footerBox.setSpacing(5);
        footerBox.setAlignment(Pos.BOTTOM_LEFT);
        footerBox.setPadding(new Insets(0, 0, 5, 15));
        Image image = new Image(AquaFx.class.getResource("demo/images/lock_open.png").toExternalForm());
        ImageView lockView = new ImageView(image);
        lockView.setPreserveRatio(true);
        lockView.setFitHeight(36);
        footerBox.getChildren().add(lockView);
        Label info = new Label("Zum Sch\u00FCtzen auf das Schloss klicken.");
View Full Code Here

                ImageView typeImage;

                if (item.equals("WLAN")) {
                    dotImage = new ImageView(NsImageIconLoader.load(NsImageIcon.STATUS_AVAILABLE));
                    legend.setText("Verbunden");
                    Image img = new Image(AquaFx.class.getResource("demo/images/wifi.png").toExternalForm());
                    typeImage = new ImageView(img);
                    typeImage.setPreserveRatio(true);
                    typeImage.setFitHeight(32);
                } else {
                    dotImage = new ImageView(NsImageIconLoader.load(NsImageIcon.STATUS_PARTIALLY_AVAILABLE));
                    legend.setText("Keine IP-Adresse");
                    Image img = new Image(AquaFx.class.getResource("demo/images/bluetooth.png").toExternalForm());
                    typeImage = new ImageView(img);
                    typeImage.setPreserveRatio(true);
                    typeImage.setFitHeight(32);
                }
View Full Code Here

        gridTitlePane.setContent(grid);
       
        // --- Accordion
        final Accordion accordion = new Accordion ();               
        for (int i = 0; i < imageNames.length; i++) {
            images[i] = new
                Image(AquaFx.class.getResource("demo/images/"+imageNames[i] + ".png").toExternalForm());
            pics[i] = new ImageView(images[i]);
            tps[i] = new TitledPane(imageNames[i],pics[i]);
        }  
        accordion.getPanes().addAll(tps);
View Full Code Here

    }

    @Override public void start(Stage stage) throws Exception {
        BorderPane borderPane = new BorderPane();

        Image image = new Image(AquaFx.class.getResource("demo/images/bild.png").toExternalForm());
        ImageView iv = new ImageView(image);

        BorderPane.setMargin(iv, new Insets(18, 0, 0, 18));
        borderPane.setLeft(iv);
View Full Code Here

        stage.setTitle("TerasologyLauncher " + TerasologyLauncherVersionInfo.getInstance().getDisplayVersion());
        List<String> iconIds = Arrays.asList("icon16", "icon32", "icon64", "icon128");

        for (String id : iconIds) {
            try {
                Image image = BundleUtils.getFxImage(id);
                stage.getIcons().add(image);
            } catch (MissingResourceException e) {
                logger.warn("Could not load icon image", e);
            }
        }
View Full Code Here

     }
        
    private static Scene swipScene() //swiping card animation
      {
     
      Image image=new Image("file:///C:/vengo/images/receipt.png");
      iv1=new ImageView();
        iv1.setImage(image)
      Group  root  =  new  Group();
          Label label1=new Label("Test label");
          Scene  scene  =  new  Scene(root);
View Full Code Here

      };

      final ImageView[] ivArray = new ImageView[names.length];
      for (int i = 0; i < names.length; i++)
         //ivArray[i] = new ImageView(new Image(getClass().getResourceAsStream(names[i]+".png")));
        ivArray[i] = new ImageView(new Image("file:///C:/vengo/images/"+names[i]+".png"));
      ivScene[0] = ivArray[1];
      ivScene[1] = ivArray[0];

      final FadeTransition fadeout = new FadeTransition();
      fadeout.setNode(ivScene[1]);
View Full Code Here

TOP

Related Classes of javafx.scene.image.Image

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.