[OpenJDK 2D-Dev] [9] RFR JDK-6842011: StackOverflowError printing landscape with scale and transform

Jim Graham james.graham at oracle.com
Tue May 31 19:44:17 UTC 2016


I'm not entirely happy with the working in webrev.01 because it still 
starts with "returns the X coordinate scaling ..." which leads them to 
use it (although the name already is a strong pull towards using it).

How about:

----------------
Returns the {@code m00} element of the 3x3 affine transformation matrix.
This matrix factor determines how input X coordinates will affect output 
X coordinates and is one element of the scale of the transform.
To measure the full amount by which X coordinates are stretched or 
contracted by this transform, use the following code:
<pre>
     Point2D p = new Point2D.Double(1, 0);
     p = tx.deltaTransform(p, p);
     double scaleX = p.distance(0, 0);
</pre>
----------------

How does that look?  (Y would reverse the 1,0 to 0,1)

Later, when we add the new method, we can point to that method and move 
much of this description to its method description...?

			...jim

On 05/31/2016 10:42 AM, Phil Race wrote:

     ...

> And this fix is then approved ..
>
> -phil.



More information about the 2d-dev mailing list