title: Clip an HBox inside a GridPane
body: <p>I have a <code>JavaFX 2</code> GUI which includes an <code>HBox</code> filling one of the cells of a <code>GridPane</code>. All of my components are dynamically sized. This displays fine, no problems.</p>
  
  <p>First question: I'd like to clip the contents of the <code>HBox</code> at the edge of the <code>GridPane</code> cell they're in, so that none of the overflow is displayed, but I can't work out how. I've tried setting the clip for my <code>HBox</code> to a rectangle of the same size but this doesn't work. I guess because it's using the dimensions used for layout, rather than dimensions of what's displayed. Should I instead be clipping on the <code>GridPane</code> itself, or at least using its properties?</p>
  
  <p>Second question (for a bonus point): how does clipping interact with translation and scaling of the <code>Node</code>?</p>
  
  <p>Thanks for any help.</p>