Examples of prefHeight()


Examples of javafx.scene.control.Button.prefHeight()

                "-fx-font-family: 'Monospaced';");
            final VBox vBox = addVBox();
            final VBox vBoxRight = addVBoxRight();
            textVBox = addTextVBox();           
            Button goButton = new Button("Transform");
            goButton.prefHeight(Double.MAX_VALUE);
            goButton.setStyle("    -fx-background-color:" +
        "linear-gradient(#686868 0%, #232723 25%, #373837 75%, #757575 100%)," +
        "linear-gradient(#020b02, #3a3a3a)," +
        "linear-gradient(#9d9e9d 0%, #6b6a6b 20%, #343534 80%, #242424 100%)," +
        "linear-gradient(#8a8a8a 0%, #6b6a6b 20%, #343534 80%, #262626 100%)," +
View Full Code Here

Examples of javafx.scene.text.Text.prefHeight()

      // add the duration as text
      Text lTimeText = new Text(startAsString + "-" + endAsString);
      {
        lTimeText.getStyleClass().add("AppointmentTimeLabel");
        lTimeText.setX( padding );
        lTimeText.setY(lTimeText.prefHeight(0));
        Rectangle lClip = new Rectangle(0,0,0,0);
        lClip.widthProperty().bind(widthProperty().subtract(padding));
        lClip.heightProperty().bind(heightProperty());
        lTimeText.setClip(lClip);
        getChildren().add(lTimeText);
View Full Code Here

Examples of javafx.scene.text.Text.prefHeight()

      // add the duration as text
      final Text lTimeText = new Text(startAsString + " " + appointment.getSummary());
      {
        lTimeText.getStyleClass().add("AppointmentTimeLabel");
        lTimeText.setX( menuIcon.getWidth() + padding );
        lTimeText.setY(lTimeText.prefHeight(0) / 2);
        lTimeText.wrappingWidthProperty().bind(widthProperty().subtract(padding));
        // add a clip to mask out all except the first line
        lTimeText.fontProperty().addListener( (observable) -> {
          Rectangle lClip = new Rectangle();
          lClip.widthProperty().bind(widthProperty().subtract(padding));
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.