how to select Shape object after rotation.
I have a problem while selecting a Shape Object after rotation has made to that when mouse clicked on that object. I am able to select a shape(Rectangle) Object without rotation(0 Degrees) using contains method in the Shape Object. Pls help me... how to select the Shape Object.
Thanks in Advance.
Thank U very much....Fubarable
Now m able to select a Shape object. But when i transform the graphics object to draw the shape object code is not working fine i hope because of using AffineTransform without interaction of Graphics2D object...right?
I tried like this
public boolean contains(Point2D p, AffineTransform at,
at.translate(origin, origin); //origin means translated position ex:100.
Shape s = at.createTransformedShape(shape);
but its not working fine... how can i proceed......Pls make to overcome this issue.
Thanks in Advance....