Package javafx.scene.text

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


    workflowRectangle.setArcHeight(25);
    workflowRectangle.setArcWidth(25);
    final Text classText = new Text(workflowClass);
    classText.setFontSmoothingType(FontSmoothingType.LCD);
    classText.xProperty().bind(workflowRectangle.xProperty().add(workflowRectangle.getWidth()/2).subtract(classText.getBoundsInLocal().getWidth()/2));
    classText.yProperty().bind(workflowRectangle.yProperty().subtract(16));
    final Text instanceIdText = new Text(id);
    instanceIdText.setFont(Font.font(Font.getDefault().getName(),10));
    instanceIdText.setFontSmoothingType(FontSmoothingType.LCD);
    instanceIdText.xProperty().bind(workflowRectangle.xProperty().add(workflowRectangle.getWidth()/2).subtract(classText.getBoundsInLocal().getWidth()/2));
    instanceIdText.yProperty().bind(workflowRectangle.yProperty().subtract(3));
View Full Code Here


    classText.yProperty().bind(workflowRectangle.yProperty().subtract(16));
    final Text instanceIdText = new Text(id);
    instanceIdText.setFont(Font.font(Font.getDefault().getName(),10));
    instanceIdText.setFontSmoothingType(FontSmoothingType.LCD);
    instanceIdText.xProperty().bind(workflowRectangle.xProperty().add(workflowRectangle.getWidth()/2).subtract(classText.getBoundsInLocal().getWidth()/2));
    instanceIdText.yProperty().bind(workflowRectangle.yProperty().subtract(3));
    pane.getChildren().add(workflowRectangle);
    pane.getChildren().add(classText);
    pane.getChildren().add(instanceIdText);
    return pane;
  }
View Full Code Here

    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

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

        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

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.