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());
}

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 ( ) ) ; }
add the rectangle ' rect ' to the area representing the part of the page which is drawn into .
