[OpenJDK 2D-Dev] Question about RectangularShape.getBounds() behaviour

Clemens Eisserer linuxhippy at gmail.com
Fri May 22 17:45:13 UTC 2009


Hi,

I just noticed
> new Rectangle2D.Double(-19.9, 1, 20, 1).getBounds();
returns
java.awt.Rectangle[x=-20,y=1,width=21,height=1]

Is this behaviour intended?
Wouldn't -20 / 20 be large enough?

Thanks, Clemens



More information about the 2d-dev mailing list