Example usage for javafx.scene.shape Ellipse setCenterX

List of usage examples for javafx.scene.shape Ellipse setCenterX

Introduction

In this page you can find the example usage for javafx.scene.shape Ellipse setCenterX.

Prototype

public final void setCenterX(double value) 

Source Link

Usage

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);
    bigCircle.setCenterY(20);//w  w  w. j a v a  2 s. c om
    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);
    bigCircle.setCenterY(20);//ww  w.  j a  v a 2  s.co  m
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    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);
    bigCircle.setCenterY(20);//from ww w.ja va 2  s  .  co m
    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);
    bigCircle.setCenterY(20);/* w w w.j  ava 2  s  .  c  o m*/
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    System.out.println(bigCircle.getRadiusY());

    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);
    bigCircle.setCenterY(20);/*from  w ww. j  ava  2s  .c  o m*/
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    System.out.println(bigCircle.getCenterY());

    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);
    bigCircle.setCenterY(20);//from  www .  ja v a2s.  c  om
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    System.out.println(bigCircle.radiusXProperty());

    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);
    bigCircle.setCenterY(20);/*from w  w  w  . j  a v  a 2  s .  c  om*/
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    System.out.println(bigCircle.centerYProperty().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);
    bigCircle.setCenterY(20);//from  w  w w  .j  a  v  a 2 s.  c  o m
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    System.out.println(bigCircle.getRadiusX());

    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);
    bigCircle.setCenterY(20);//  w  ww .  ja v  a 2s . c o m
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    System.out.println(bigCircle.getCenterX());

    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);
    bigCircle.setCenterY(20);/*from ww w.  ja va  2 s. c  o  m*/
    bigCircle.setRadiusX(10);
    bigCircle.setRadiusY(10);

    System.out.println(bigCircle.radiusYProperty());

    root.getChildren().add(bigCircle);

    primaryStage.setScene(scene);
    primaryStage.show();
}