[OpenJDK 2D-Dev] [8] Request for review: 8004859 Graphics.getClipBounds/getClip return difference nonequivalent bounds, depending from transform.

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu Dec 13 11:08:58 UTC 2012

Please review the fix for jdk 8.
Change description:
1 transformShape now symmetric to untransformShape() 
(setFrameFromDiagonal was removed).
2 getClipBounds now always uses getBounds2D which does not return empty 
Rectangle if the userclip has negative width or height.

Note that if the userclip has negative width or height, our real graphic 
clip will be empty/no-area. This wasn't true before the fix for the 
scaled graphics.

Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8004859
Webrev can be found at: http://cr.openjdk.java.net/~serb/8004859/webrev.00

Best regards, Sergey.

More information about the 2d-dev mailing list