Hm, I just found g.getArea() which I never knew about. I suspect that's what I should be using.