List of usage examples for javafx.scene.shape Ellipse centerXProperty
public final DoubleProperty centerXProperty()
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Shapes"); Group root = new Group(); Scene scene = new Scene(root, 300, 300, Color.WHITE); Ellipse bigCircle = new Ellipse(); bigCircle.setCenterX(20);/*from w w w .j a va 2s .c om*/ bigCircle.setCenterY(20); bigCircle.setRadiusX(10); bigCircle.setRadiusY(10); System.out.println(bigCircle.centerXProperty().doubleValue()); root.getChildren().add(bigCircle); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Shapes"); Group root = new Group(); Scene scene = new Scene(root, 300, 300, Color.WHITE); Ellipse bigCircle = new Ellipse(20, 20); bigCircle.setCenterX(20);//from w w w . ja v a2 s.com bigCircle.setCenterY(20); bigCircle.setRadiusX(10); bigCircle.setRadiusY(10); System.out.println(bigCircle.centerXProperty().doubleValue()); root.getChildren().add(bigCircle); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Shapes"); Group root = new Group(); Scene scene = new Scene(root, 300, 300, Color.WHITE); Ellipse bigCircle = new Ellipse(20, 20, 30, 30); bigCircle.setCenterX(20);/*from www . ja v a 2s.c o m*/ bigCircle.setCenterY(20); bigCircle.setRadiusX(10); bigCircle.setRadiusY(10); System.out.println(bigCircle.centerXProperty().doubleValue()); root.getChildren().add(bigCircle); primaryStage.setScene(scene); primaryStage.show(); }