Add xyAnchor method