Package javafx.scene.shape

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


      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

        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

        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

        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

          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

        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

        }
       
        {
            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

        }
       
        {
            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

        }
       
        {
            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.