Package javafx.scene.text

Examples of javafx.scene.text.Text


    hboxTop.getChildren().add(btnTriView);
    hboxTop.getChildren().add(btnSuggest);

    memberAttrList = FXCollections.observableArrayList();
    attributeTableView = TableUtil.buildTableMemberAttributes(memberAttrList);
    attributeTableView.setPlaceholder(new Text("Select a JIT-compiled class member to view compilation attributes."));

    SplitPane spMethodInfo = new SplitPane();
    spMethodInfo.setOrientation(Orientation.VERTICAL);

    classMemberList = new ClassMemberList(this, getConfig());
View Full Code Here


    show(rootNode, X_OFFSET, Y_OFFSET, 0);

    if (rootNode.getChildren().size() == 0)
    {
      Text text = new Text("No method calls made by " + rootNode.getMember().toStringUnqualifiedMethodName(false) + " were inlined or JIT compiled");
      text.setX(X_OFFSET);
      text.setY(y);

      pane.getChildren().add(text);
    }
  }
View Full Code Here

    pane.getChildren().add(roundedRect);

    keyY += 20;

    Text text = new Text("Key");
    text.setX(keyX + 75);
    text.setY(keyY);

    pane.getChildren().add(text);

    keyY += 15;
View Full Code Here

    return nextX;
  }

  private PlotNode buildNode(String labelText, double x, double y, boolean inlined, boolean compiled)
  {
    Text text = new Text(labelText);

    text.snapshot(null, null);

    double textWidth = text.getLayoutBounds().getWidth();
    double textHeight = text.getLayoutBounds().getHeight();

    double rectWidth = textWidth + 20;

    Rectangle rect = new Rectangle(x, y, rectWidth, RECT_HEIGHT);
    rect.setArcWidth(16);
    rect.setArcHeight(16);

    text.setX(x + (rectWidth / 2 - textWidth / 2));

    // text plot from bottom left
    text.setY(y + RECT_HEIGHT - STROKE_WIDTH - (RECT_HEIGHT - textHeight) / 2);

    text.setFill(getColorForInlining(inlined));

    rect.setStroke(Color.BLACK);
    rect.setStrokeWidth(STROKE_WIDTH);
    rect.setFill(getColourForCompilation(compiled));
View Full Code Here

    Scene scene = new Scene(vbox, 530, 200);
 
    setTitle("No classes or sources mounted");
   
        Label lblMsg1 = new Label("I see you've not configured any source or class locations?");
        Text lblMsg2 = new Text("JITWatch will try and work out the classpath from the HotSpot log but if I miss\nanything then you might need to configure the paths manually!");
       
        CheckBox cbShowWarning = new CheckBox("Don't show this warning again.");
        cbShowWarning.setTooltip(new Tooltip("Don't show warning about no source or class files added."));
        cbShowWarning.setSelected(false);
        cbShowWarning.selectedProperty().addListener(new ChangeListener<Boolean>()
View Full Code Here

        /*####################################
         *PositionCursor Set
         #################################### */

        final Circle c = new Circle(2, Color.RED);
        final Text cursorText = new Text("None");
        cursorText.setFill(Color.YELLOW);
        cursorText.setFont(Font.font("Arial", 6));



        setupLayout(); //initial layout setup in constructor

View Full Code Here

        yPrevious = 0;
    }

    private void setupLayout() {
        //This draws the x axis text as well as grid etc
        Text xText = new Text("X Axis");
        Text yText = new Text("Y Axis");

        xText.setY(-10);
        xText.xProperty().bind(this.heightProperty().divide(2));
        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);
        this.getChildren().add(yText);

        this.setCursor(Cursor.CROSSHAIR);
View Full Code Here

        int tickLabelCounter = 1;
        for (double angle = 0 ; angle < 360 ; angle += 6) {
            Region tick = new Region();
            if (angle % 30 == 0) {
                tick.getStyleClass().setAll(majorTickStyleClass);
                Text tickLabel = new Text(Integer.toString(tickLabelCounter));
                tickLabel.getStyleClass().setAll("tick-label-braun");
                tickLabels.add(tickLabel);
                tickLabelCounter++;
            } else {
                tick.getStyleClass().setAll(minorTickStyleClass);
            }
View Full Code Here

        valueIndicator.getStyleClass().setAll("value-indicator");
        valueIndicatorRotate = new Rotate(180 - getSkinnable().getStartAngle());
        valueIndicatorRotate.setAngle(valueIndicatorRotate.getAngle() + (getSkinnable().getValue() - getSkinnable().getOldValue() - getSkinnable().getMinValue()) * angleStep);
        valueIndicator.getTransforms().setAll(valueIndicatorRotate);

        infoText = new Text(getSkinnable().getInfoText().toUpperCase());
        infoText.setTextOrigin(VPos.CENTER);
        infoText.setFont(Fonts.robotoMedium(0.06 * PREFERRED_HEIGHT));
        infoText.setMouseTransparent(true);
        infoText.getStyleClass().setAll("info-text");       

        value = new Text(String.format(Locale.US, "%." + getSkinnable().getDecimals() + "f", getSkinnable().getValue()));
        value.setMouseTransparent(true);
        value.setTextOrigin(VPos.CENTER);
        value.setFont(Fonts.robotoBold(0.32 * PREFERRED_HEIGHT));
        value.setMouseTransparent(true);
        value.getStyleClass().setAll("value");
View Full Code Here

        alarm = new Region();
        alarm.getStyleClass().setAll("alarm");
        alarm.setOpacity(getSkinnable().getAlarms().isEmpty() || allAlarmsInactive() ? 0 : 1);

        backgroundTimeText = new Text("");
        backgroundTimeText.getStyleClass().setAll("fg-trsp");
        backgroundTimeText.setOpacity((LcdClock.LcdFont.LCD == getSkinnable().getTimeFont() || LcdClock.LcdFont.ELEKTRA == getSkinnable().getTimeFont()) ? 1 : 0);

        timeText = new Text("");
        timeText.getStyleClass().setAll("fg");

        backgroundSecondText = new Text("");
        backgroundSecondText.getStyleClass().setAll("fg-trsp");
        backgroundSecondText.setOpacity((LcdClock.LcdFont.LCD == getSkinnable().getTimeFont() || LcdClock.LcdFont.ELEKTRA == getSkinnable().getTimeFont()) ? 1 : 0);

        secondText = new Text("");
        secondText.getStyleClass().setAll("fg");

        title = new Text(getSkinnable().getTitle());
        title.getStyleClass().setAll("fg");

        dateText = new Text(getSkinnable().getTime().getMonthValue() + "/" + getSkinnable().getTime().getDayOfMonth() + "/" + getSkinnable().getTime().getYear());
        dateText.getStyleClass().setAll("fg");

        dayOfWeekText = new Text("");
        dayOfWeekText.getStyleClass().setAll("fg");

        shadowGroup = new Group();
        shadowGroup.setEffect(getSkinnable().isForegroundShadowVisible() ? FOREGROUND_SHADOW : null);
        shadowGroup.getChildren().setAll(alarm,
View Full Code Here

TOP

Related Classes of javafx.scene.text.Text

Copyright © 2018 www.massapicom. 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.