title: layoutx / layouty values
body: <p>I have a problem to find out the correct layoutx / layouty values for shapes. Please have a look at this example:</p>
  
  <pre><code>package test;
  
  import javafx.application.Application;
  import javafx.scene.Group;
  import javafx.scene.Scene;
  import javafx.stage.Stage;
  import javafx.scene.shape.Line;
  
  public class TestLinePosition
      extends Application
  {
    private Line line;
  
    private Scene getScene()
    {
      Group group = new Group();
  
      line = new Line(10, 10, 60, 10);
  
      group.getChildren().add(line);
  
      Scene scene = new Scene(group, 640, 480);
  
      return scene;
    }
  
    @Override
    public void start(Stage stage) throws Exception
    {
      stage.setScene(getScene());
      stage.show();
      System.out.println("x: " + line.getLayoutX() + ", y: " + line.getLayoutY());
    }
  
    public static void main(String[] args)
    {
      Application.launch(args);
    }
  }
  </code></pre>
  
  <p>If I run this program the line seems to be positioned as expected starting at 10, 10. However the layoutx and layouty values are 0, 0.</p>
  
  <p>Can anybody give me an explanation for this behaviour and / or tell me how to find out the actual position?</p>
  
  <p>Thank you,
  Roger</p>