title: How to enable "Fit to Page" functionality in Java using JGraphX
body: <p>I want to implement "Fit to Page" functionality using <code>mxGraph</code> in <code>Java</code>. I tried to find width and height, using <code>view.getGraphBounds().getWidth()</code>, and tried to determine zoom factor to zoom out/in. But didn't worked. Any help/suggestion is greatly appreciated.</p>