Examples of yProperty()


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

    adapterRectangle.setArcHeight(25);
    adapterRectangle.setArcWidth(25);
    final Text adapterText = new Text(id);
    adapterText.setFontSmoothingType(FontSmoothingType.LCD);
    adapterText.xProperty().bind(adapterRectangle.xProperty().add(adapterRectangle.getWidth()/2).subtract(adapterText.getBoundsInLocal().getWidth()/2));
    adapterText.yProperty().bind(adapterRectangle.yProperty().subtract(5));
    pane.getChildren().add(adapterRectangle);
    pane.getChildren().add(adapterText);
    return pane;
  }
View Full Code Here

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

        }
        // hour text
        {
          Text t = new Text(lHour + ":00");
          t.xProperty().bind(timeWidthProperty.subtract(t.getBoundsInParent().getWidth()).subtract(timeColumnWhitespace / 2));
          t.yProperty().bind(hourHeighProperty.multiply(lHour));
          t.setTranslateY(t.getBoundsInParent().getHeight()); // move it under the line
          t.getStyleClass().add("HourLabel");
          t.setFontSmoothingType(FontSmoothingType.LCD);
          getChildren().add(t);
        }
View Full Code Here

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

        xText.setRotate(0);
        xText.setFill(Color.YELLOW);
        xText.setFont(Font.font("Arial", 10));

        yText.setX(-25);
        yText.yProperty().bind(this.widthProperty().divide(2));
        yText.setRotate(-90);
        yText.setFill(Color.YELLOW);
        yText.setFont(Font.font("Arial", 10));

        this.getChildren().add(xText);
View Full Code Here

Examples of javafx.scene.transform.Scale.yProperty()

        return null;
      }
    };
    final Scale scale = new Scale();
    scale.xProperty().bind(localScaleFactor);
    scale.yProperty().bind(localScaleFactor);
    param = new SnapshotParameters();
    param.setDepthBuffer(true);
    param.setTransform(scale);

    final StackPane mainContent = new StackPane();
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.