This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Problem with Coordinates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with Coordinates" Watch "Problem with Coordinates" New topic
Author

Problem with Coordinates

Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
Hi all

In my graphics application , i rotated my polygon by angle -45 .

Now when i notice the mouse event over polygon , the method contains

always return false because of rotation , the x and y of polygon has been changed.

Plz suggest me how to apply polygon.contains method which will return true when i click over polygon

Thanks


Lack of will power has caused more failure than lack of intelligence or ability.
My Blog | Red5 Resources | Technology Update | Daily Technology Tips
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Coordinates