Package javafx.scene.layout

Examples of javafx.scene.layout.StackPane.heightProperty()


    StackPane root = new StackPane();
    Scene scene = new Scene(root, width, height);

    canvas.widthProperty().bind(root.widthProperty());
    canvas.heightProperty().bind(root.heightProperty());

    gc.setFont(new Font("monospace", 10));

    root.getChildren().add(canvas);
View Full Code Here


    StackPane root = new StackPane();
    Scene scene = new Scene(root, width, height);

    canvas.widthProperty().bind(root.widthProperty());
    canvas.heightProperty().bind(root.heightProperty());

    root.getChildren().add(canvas);

    setTitle("JITWatch Free Code Cache");
View Full Code Here

        sp.setPrefSize(600, 400);
        this.canvas = new ChartCanvas(getSkinnable().getChart());
        this.canvas.setTooltipEnabled(control.isTooltipEnabled());
        this.canvas.addChartMouseListener(control);
        this.canvas.widthProperty().bind(sp.widthProperty());
        this.canvas.heightProperty().bind(sp.heightProperty());
        this.canvas.addMouseHandler(new ZoomHandlerFX("zoom", control));
        sp.getChildren().add(this.canvas);
       
        borderPane.setCenter(sp);
View Full Code Here

            gameManager.setScale(scale);
            gameManager.setLayoutX((root.getWidth() - gameBounds.getWidth()) / 2d);
            gameManager.setLayoutY((root.getHeight() - gameBounds.getHeight()) / 2d);
        };
        root.widthProperty().addListener(resize);
        root.heightProperty().addListener(resize);

        Scene scene = new Scene(root);
        scene.getStylesheets().add("game2048/game.css");
        addKeyHandler(scene);
        addSwipeHandlers(scene);
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.