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