Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

graphics2d coordinates

Status
Not open for further replies.

esdee

Programmer
Apr 12, 2001
143
US
are all java2d operations in user space coordinates ? is there a way to get world coordinates ?
 
what do world coordinates mean?
you mean the coordinate of the object to the os window?
 
All of the java's 2d libraries are relative to the upper left corner of it's container. It's not terribly hard to draw draw relative to the OS's desktop, because you can get the window's X and Y offest from the desktop's upper left and then do simple subtraction.

Then again it's been a while sice I used java2d stuff...
 
thanx.
i guess i just needed a reference to SwingUtilities.convertPointToScreen()

------------------------
dev at viewmoresoft.com
tools for your database
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top