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

2012-12-13 Thread Sergey Bylokhov
14.12.2012 0:40, Jim Graham wrote: This fix breaks other behavior. You need to use setFrameFromDiagonal on the results of the transform because a flip or rotation can cause the transformed points to be unordered and setFFD will sort them as they need to be. It is the incoming rectangle that

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

2012-12-13 Thread Jim Graham
This fix breaks other behavior. You need to use setFrameFromDiagonal on the results of the transform because a flip or rotation can cause the transformed points to be unordered and setFFD will sort them as they need to be. It is the incoming rectangle that needs to be checked for being empty,

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

2012-12-13 Thread Sergey Bylokhov
Hello, 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