mapping question
- From: Lou Lipnickey <lou.lipnickey@xxxxxxxxx>
- Date: Mon, 06 Mar 2006 03:42:02 GMT
I am working on an application which draws maps on a screen. This is done with using sets of x,y coordinates which are made into polygons and then drawn in a paintComponent. The user now wants to add elevation (a "z" component). The question at hand is how to quickly index into a data structure to find an elevation point based on the mouse location (x,y) of the screen. Currently, polygon.contains(x,y) is used. Although not exactly a GUI question I was hoping that someone might either relate how they might have done something similar or a pointer to reference. Thanks - Lou
.
- Prev by Date: JTextPane - What's the maximum length of the string in setText(string)
- Next by Date: Highlight JTable values in a cell..
- Previous by thread: JTextPane - What's the maximum length of the string in setText(string)
- Next by thread: Highlight JTable values in a cell..
- Index(es):
Relevant Pages
|