Examples of wrappingWidthProperty()


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

      Text lSummaryText = new Text(appointment.getSummary());
      {
        lSummaryText.getStyleClass().add("AppointmentLabel");
        lSummaryText.setX( padding );
        lSummaryText.setY( lTimeText.getY() + textHeightProperty.get());
        lSummaryText.wrappingWidthProperty().bind(widthProperty().subtract(padding));
        Rectangle lClip = new Rectangle(0,0,0,0);
        lClip.widthProperty().bind(widthProperty());
        lClip.heightProperty().bind(heightProperty().subtract(padding));
        lSummaryText.setClip(lClip);
        getChildren().add(lSummaryText);     
View Full Code Here

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

      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));
          lClip.heightProperty().set( lTimeText.fontProperty().getValue().getSize() );
View Full Code Here

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

            @Override
            public void updateItem(String item, boolean empty) {
                super.updateItem(item, empty);
                if (!isEmpty()) {
                    Text text = new Text(item);
                    text.wrappingWidthProperty().bind(getTableColumn().widthProperty());
                    setGraphic(text);
                } else {
                    setGraphic(null);
                }
            }
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.