Examples of translateYProperty()


Examples of javafx.scene.shape.Circle.translateYProperty()

                  random() * 800),
              new KeyValue(circle.translateYProperty(),
                  random() * 600)),
          new KeyFrame(new Duration(40000), // set end position at 40s
              new KeyValue(circle.translateXProperty(),
                  random() * 800), new KeyValue(circle
                  .translateYProperty(), random() * 600)));
    }
    // play 40s of animation
    timeline.play();
   
View Full Code Here

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

    rectangle.setArcHeight(20);
    rectangle.setArcWidth(20);
    final Text text = new Text(getDisplayText());
    text.setFontSmoothingType(FontSmoothingType.LCD);
    text.translateXProperty().bind(rectangle.translateXProperty());
    text.translateYProperty().bind(rectangle.translateYProperty().add(rectangle.getHeight()/2).add(text.getBoundsInLocal().getHeight()/4));
    pane.getChildren().add(rectangle);
    pane.getChildren().add(text);
    return pane;
  }
 
View Full Code Here

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

                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.5)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.translateXProperty().bind(size.multiply(-0.5));
            r.translateYProperty().bind(size.multiply(-0.5));
            r.translateZProperty().bind(size.multiply(0.5));
           
            getChildren().add(r);
        }
       
View Full Code Here

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

                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.3)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.translateXProperty().bind(size.multiply(-1));
            r.translateYProperty().bind(size.multiply(-0.5));
            r.setRotationAxis(Rotate.Y_AXIS);
            r.setRotate(90);
           
            getChildren().add(r);
        }
View Full Code Here

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

                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.2)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.setTranslateX(0);
            r.translateYProperty().bind(size.multiply(-0.5));
            r.setRotationAxis(Rotate.Y_AXIS);
            r.setRotate(90);
           
            getChildren().add(r);
        }
View Full Code Here

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

                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.1)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.translateXProperty().bind(size.multiply(-0.5));
            r.translateYProperty().bind(size.multiply(-1));
            r.setRotationAxis(Rotate.X_AXIS);
            r.setRotate(90);
           
            getChildren().add(r);
        }
View Full Code Here

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

            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(color);
            r.translateXProperty().bind(size.multiply(-0.5));
            r.translateYProperty().bind(size.multiply(-0.5));
            r.translateZProperty().bind(size.multiply(-0.5));
            r.setRotate(90);
           
            getChildren().add(r);
        }
View Full Code Here

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

    rectangle.setArcHeight(20);
    rectangle.setArcWidth(20);
    final Text text = new Text(getDisplayText());
    text.setFontSmoothingType(FontSmoothingType.LCD);
    text.translateXProperty().bind(rectangle.translateXProperty());
    text.translateYProperty().bind(rectangle.translateYProperty().add(rectangle.getHeight()/2).add(text.getBoundsInLocal().getHeight()/4));
    pane.getChildren().add(rectangle);
    pane.getChildren().add(text);
    return pane;
  }
 
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.