Package javafx.scene.image

Examples of javafx.scene.image.Image


        final DropShadow shadow = DropShadowBuilder.create()
                .radius(4)
                .color(Color.GREY)
                .build();

        Image image = null;
        final InputStream imageInputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("Properties.png");
        if (imageInputStream != null) {
            image = new Image(imageInputStream);
        }

        for (int i = 0; i < 40; i++) {
            p.getChildren().add(
                    ImageViewBuilder.create()
View Full Code Here


     */
    private Scene createPreloaderScene() {

        final StackPane p = new StackPane();

        final ImageView logo = new ImageView(new Image("JRebirth_Title.png"));
        p.getChildren().add(logo);
        StackPane.setAlignment(logo, Pos.CENTER);

        this.progressBar = new ProgressBar(0.0);
        this.progressBar.setPrefSize(460, 20);
View Full Code Here

                        }
                    }
                    g.drawRect(startX, startY, endX - startX, endY - startY);
                    System.out.println("Готово!");

                    Image image = SwingFXUtils.toFXImage(newBufferedImage, null);
                    ImageView iv1 = new ImageView();
                    iv1.setImage(image);
                    iv1.setFitHeight(500);
                    iv1.setFitWidth(800);
                    vBox.getChildren().add(iv1);
View Full Code Here

        bar.setRadiusX(RADIUS);
        bar.setRadiusY(RADIUS);

        if (getSkinnable().isBarGradientEnabled()) {
            recalculateBarGradient();
            Image image = barGradient.getImage(size, size);
            bar.setFill(new ImagePattern(image, 0, 0, size, size, false));
        } else {
            bar.setFill(new RadialGradient(0, 0,
                                           centerX, centerY,
                                           RADIUS, false, CycleMethod.NO_CYCLE,
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

        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

            // Draw Section Icon
            if (size > 0) {
                if (getSkinnable().isSectionIconVisible() && !getSkinnable().isSectionTextVisible()) {
                    if (null != SECTION.getImage()) {
                        Image icon = SECTION.getImage();
                        sinValue = -Math.sin(Math.toRadians(OFFSET - 90 - SECTION_START_ANGLE - SECTION_ANGLE_EXTEND * 0.5));
                        cosValue = -Math.cos(Math.toRadians(OFFSET - 90 - SECTION_START_ANGLE - SECTION_ANGLE_EXTEND * 0.5));
                        Point2D iconPoint = new Point2D(size * 0.5 + size * 0.365 * sinValue, size * 0.5 + size * 0.365 * cosValue);
                        sectionsCtx.drawImage(icon, iconPoint.getX() - size * 0.06, iconPoint.getY() - size * 0.06, size * 0.12, size * 0.12);
                    }
View Full Code Here

        if (cc_images == null) {
            warning("Cache images is null!");
        }

        Image img = null;
        InputStream is = null;
        name = Constants.RES_IMAGE_PATH + name;

        if (cc_images.containsKey(name)) {
            return cc_images.get(name);
        }

        try {
            is = UtilityFX.class.getClass().getResourceAsStream(name);
        } catch (Exception exc) {
            UtilityFX.warning("InputStream error for image name:" + name + " EXC:" + exc.toString());
            exc.printStackTrace();
        }

        try {
            if (is != null) {
                img = new Image(is);
            } else {
                img = new Image(name);
            }

            if (name != null) {
                cc_images.put(name, img);
            }
View Full Code Here

        if (data_images == null) {
            warning("Cache images is null!");
        }

        Image img = null;
        InputStream is = null;
        name = Constants.RES_IMAGE_PATH + name;

        if (data_images.containsKey(name)) {
            return data_images.get(name);
        }

        try {
            is = UtilityFX.class.getClass().getResourceAsStream(name);
        } catch (Exception exc) {
            UtilityFX.warning("InputStream error for image name:" + name + " EXC:" + exc.toString());
            exc.printStackTrace();
        }

        try {
            if (is != null) {
                img = new Image(is);
            } else {
                img = new Image(name);
            }

            if (name != null) {
                data_images.put(name, img);
            }
View Full Code Here

                    event.consume();
                }
            });

        primaryStage.setScene(scene);
        primaryStage.getIcons().add(new Image("file:xmlspectrum-icon.png"));
        primaryStage.setTitle("XMLSpectrum-FX");
        primaryStage.show();
    }
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.