code: public void setFrameFromDiagonal (XY p1, XY p2) {
          setFrameFromDiagonal(p1.x(), p1.y(), p2.x(), p2.y());
      }
docs: Sets the location and size of the framing rectangle of this shape based on the supplied
  diagonal line.