title: Center text on Canvas?
body: <p>Can someone please give me an example on how to center text on a JavaFX 2 <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/canvas/Canvas.html" rel="noreferrer">Canvas</a>?</p>
  
  <p><a href="http://docs.oracle.com/javafx/2/api/javafx/scene/canvas/GraphicsContext.html" rel="noreferrer">GraphicsContext</a> has some functions like setTextAlign, but I am not sure on how to use all those methods and which of them I really need. I want to center my text vertically and horizontally.</p>