question: private void addDrawingRect ( Rectangle2D rect ) { AffineTransform matrix = getTransform ( ) ; Shape transShape = matrix . createTransformedShape ( rect ) ; Rectangle2D transRect = transShape . getBounds2D ( ) ; mDrawingArea . add ( ( float ) transRect . getMinY ( ) , ( float ) transRect . getMaxY ( ) ) ; }
target:  Add the rectangle 'rect' to the area representing the part of the page which is drawn into.