code: public Rectangle toRelative(Rectangle rect) {
  		return new Rectangle(rect.getLeft() - origX, rect.getBottom() - origY, rect.getRight() - origX, rect.getTop()
  				- origY);
  	}
docs: Converts an absolute rectangle to a relative one wrt to the current coordinate system.
  
  @param rect absolute rectangle
  @return relative rectangle