Examples of heightProperty()


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

      lSummaryText.getStyleClass().add("AppointmentLabel");
      lSummaryText.setX( padding );
      lSummaryText.setY( textHeightProperty.get() );
      Rectangle lClip = new Rectangle(0,0,0,0);
      lClip.widthProperty().bind(widthProperty().subtract(padding));
      lClip.heightProperty().bind(heightProperty());
      lSummaryText.setClip(lClip);
      getChildren().add(lSummaryText);     
     
      // add the menu header
      getChildren().add(menuIcon);
View Full Code Here

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

        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);
      }
      // add summary
      Text lSummaryText = new Text(appointment.getSummary());
View Full Code Here

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

        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.shape.Rectangle.heightProperty()

        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() );
          lTimeText.setClip(lClip);
        });
        getChildren().add(lTimeText);
      }
     
View Full Code Here

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

          Color arg1, Color arg2) {
        getChildren().clear();
        //TODO: Style Rectangle by CSS
        Rectangle colorRect = RectangleBuilder.create().fill(arg2)
            .stroke(Color.BLACK).build();
        colorRect.heightProperty().bind(heightProperty());
        colorRect.widthProperty().bind(widthProperty());       
        setGraphic(colorRect);
      }
    });
  }
View Full Code Here

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

        this.shade.set(1);
       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
View Full Code Here

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

        }
       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
View Full Code Here

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

        }
       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
View Full Code Here

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

        }
       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
View Full Code Here

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

        }
       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
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.