title: How to scale and set coordinates of MediaView?
body: <p>I would like to embedd a video in my JavaFx 2.x scene and also resize it and relocate it to my needs. The problem I'm having is following. If I build a <code>MediaView</code> component and then translate X or Y coordinate, then the whole view is being <strong>properly moved</strong> like so:</p>
  
  <pre><code>MediaView mv = (...)
  mv.setTranslateX(200);
  mv.setTranslateY(200);
  </code></pre>
  
  <p>I could do a similar transformation with scaling property:</p>
  
  <pre><code>MediaView mv = (...)
  mv.setScaleX(2);
  mv.setScaleY(2);
  </code></pre>
  
  <p>which will <strong>properly scale</strong> <code>mv</code> instance two times in dimension.</p>
  
  <p>However, the problem is when I combine those two translations. The <code>mv</code> instance is being scaled but it <strong>always ends up in screen coordinates <code>(0,0)</code></strong>. This is of course incorrect behavior from my perspective.</p>
  
  <p>I have also tried to wrap my <code>MediaView</code> component within some wrapper node, like <code>Group</code> and perform translations on this element. The behavior is the same.</p>
  
  <p><strong>How can I properly move and scale <code>MediaView</code> component at the same time?</strong></p>
  
  <p>Edit:</p>
  
  <p>Here is my code, although I'm using here <code>ImageView</code>. This is irrelevant, however. After running this code, image will be placed at <code>(0,0)</code> instead of <code>(100,100)</code>.</p>
  
  <pre><code>    @Override
      public void start(Stage stage) throws Exception {
          Group root = new Group();
  
          // Img's dimension is 200x200
          javafx.scene.image.Image img = new javafx.scene.image.Image("/home/bachman/projects/cs-player/src/main/resources/content.png");
          ImageView iv = new ImageView(img);
          root.getChildren().add(iv);
  
          // Move Image View
          iv.setTranslateX(100);
          iv.setTranslateY(100);
  
          // Scale Image View
          iv.setScaleX(2.0);
          iv.setScaleY(2.0);
  
          Scene scene = new Scene(root);
          stage.setWidth(600);
          stage.setHeight(600);
          stage.setScene(scene);
          stage.show();
      }
  </code></pre>