WIDTH and HEIGHT aren't immediately obvious..do they indicate the width and height of the entire hierarchy?  Maybe BOX_WIDTH and BOX_HEIGHT would be better?