Bug 860

Summary: AWT Printing (AWTTilePainter): Shall use the enclosing integer rectangle of the scaled double precision clipping rect
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: awtAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
38bc1dbe6d2402218bc348516545b25e4db177b9
Workaround: ---

Description Sven Gothel 2013-10-12 19:57:14 CEST
AWTTilePainter simply rounds the scaled double precision clipping rectangle 
to receive the integer rectangle.

This leads to uncovered drawing areas, since the integer rectangle position 
could be greater - and the size could be smaller than the double precision source.

To get the enclosing rectangle, we need to use 
  iPos = floor(position)
  iSize = ceil(position+size) - floor(position) 

.. turns our that the double precision 'Rectangle Rectangle2D.getBounds()'
already performs this math.