make adjustDia2D and adjustDiaSize2D take a lens instead of getter+setter pairs