title: Setting id to objects on JavaFX Canvas
body: <p>I would like to draw rectangle, line etc. on canvas with <code>GraphicsContext</code>.</p>
  
  <pre><code>Rectangle rect = new Rectangle(20,20,10,10);
  rect.setId("myRect");
  gc.draw(rect);
  </code></pre>
  
  <p>Is there something like this in JavaFX? Or is there a way to access drawn canvas objects?</p>