Wire up resize.

Also convert graphView into a class with better internal state.