title: Scaling down the height of a rectangle to fit in a window in javafx
body: <p>I'm currently working on a project which relies on the representation of file sizes through rectangles. What I have been stuck on for quite a while however, was scaling of the height to a size that could fit inside of my Stage. This is a crucial part of the project as it allows the user to visually compare the sizes of the files they are viewing from any directory on their machine. 
  EDIT: I tried adding an image but I haven't got enough reputation yet :(.
  <a href="http://tinypic.com/r/2e56pol/8" rel="nofollow">http://tinypic.com/r/2e56pol/8</a></p>