Examples of heightProperty()


Examples of javafx.scene.control.ToolBar.heightProperty()

        toolBar.getItems().addAll(zoomButton, label);
      } else {
        toolBar.getItems().add(label);
      }
      toolBar.setPrefWidth(imageView.getImage().getWidth());
      toolBar.heightProperty().addListener(new ChangeListener<Number>() {
      @Override
      public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
        updateToolBarY(toolBar);
      }
    });
View Full Code Here

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

        mainRec.setX(textViewBounds.getMinX());
        mainRec.setWidth(textViewBounds.getWidth());
        middleRec.setWidth(mainRec.getWidth() / 2);
      }
    });
      textView.heightProperty().addListener(new ChangeListener<Number>() {
      @Override
      public void changed(ObservableValue<? extends Number> observable,
          Number oldValue, Number newValue) {
        final Bounds textViewBounds = textView.getBoundsInLocal();
        mainRec.setY(textViewBounds.getMinY());
View Full Code Here

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

    primaryStage.setTitle("JCGP");
   
    // this pane holds the entire scene, that is its sole job.
    Pane sceneParent = new Pane();
    // the experiment layer should fill the entire scene parent
    experimentLayer.prefHeightProperty().bind(sceneParent.heightProperty());
    experimentLayer.prefWidthProperty().bind(sceneParent.widthProperty());
    // the function selector goes over the experiment layer so it doesn't get covered by other panes
    sceneParent.getChildren().addAll(experimentLayer, functionSelector);
   
    // set the scene, minimum sizes, show
View Full Code Here

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

                webEngine = webView.getEngine();

                Pane pane = new Pane();

                webView.prefWidthProperty().bind(pane.widthProperty());
                webView.prefHeightProperty().bind(pane.heightProperty());

                pane.getChildren().addAll(webView);

                Scene scene = new Scene(pane);
View Full Code Here

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

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

    root.getChildren().add(canvas);

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

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

        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

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

            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

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

    paneSource = new TriViewPane("Source", viewerSource);
    paneBytecode = new TriViewPane("Bytecode (double click for JVM spec)", viewerBytecode);
    paneAssembly = new TriViewPane("Assembly", viewerAssembly);

    splitViewer.prefHeightProperty().bind(vBox.heightProperty());

    lblMemberInfo = new Label();

    vBox.getChildren().add(hBoxToolBarClass);
    vBox.getChildren().add(hBoxToolBarButtons);
View Full Code Here

Examples of javafx.scene.shape.Rectangle.heightProperty()

      calendarText.getStyleClass().add("Calendar");
      calendarText.setX( padding ); // align left
      calendarText.setY( calendarText.prefHeight(0) );
      Rectangle lClip = new Rectangle(0,0,0,0);
      lClip.widthProperty().bind(widthProperty().subtract(padding));
      lClip.heightProperty().bind(heightProperty());
      calendarText.setClip(lClip);
      getChildren().add(calendarText);
      // react to changes in the calendar by updating the label
      dayPane.calendarObjectProperty.addListener( (observable) -> {
        String lLabel = DayHeaderPane.this.dayPane.calendarObjectProperty.get() == null ? "" : dayOfWeekDateFormat.format(DayHeaderPane.this.dayPane.calendarObjectProperty.get().getTime()) + " " + dateFormat.format(DayHeaderPane.this.dayPane.calendarObjectProperty.get().getTime());
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.