Ch 20 Rotation & the bounding box
Hi All
I have finished chapter 20 and all appears to work except the rotation of the elements. Well the rotation works but the bounding box is not rotated. It stays where element was before the rotation. Now "Move" works just fine and the bounding box is moved with the element.
Questions:
1 has anybody else noticed this.
(After rotation,if you have not rotated the element out of the bounding box, only part of it will be highlighted (the part that is still in the box) when you move the cursor over it.)
2 how do I fix it. ??
I think the problem may be that when you rotate the bounding box, a java.awt.Rectangle, it is no longer a rectangle.
No the problem was I missed the added code in the java.awt.Rectangle getBounds() class. It all works now.
Thanks
cliff
__________________
"Software to the Stars"
Failure is not an option. It comes bundled with your Microsoft products.
Last edited by Cliff2310; July 29th, 2012 at 07:51 PM..
Reason: Found the problem.
|