Hello,
I want to catch mouse click events on my OMLine's. I wrote the following
code:
public boolean mouseClicked(java.awt.event.MouseEvent e) {
//System.out.println("I am in mouseClicked");
for(int i = 0; i < m_vOMLine.size(); i++) {
if(m_vOMLine.get(i).contains(e.getX(), e.getY())) {
System.out.println("You clicked line: " + i);
}
}
return true;
}
But the problem is, I can only catch the events if I set the line type to
LINETYPE_GREATCIRCLE. Other line types LINETYPE_STRAIGHT and LINETYPE_RHUMB
do not work for this purpose. But I do not like LINETYPE_GREATCIRCLE as its
appearance is not meaningful for my application. Can anyone tell me what I
need to do if I want to catch the mouse click event with LINETYPE_STRAIGHT?
Thanks,
--
Mohammad Farhan Husain
Graduate Student
Department of Computer Science
Erik Jonsson School of Engineering and Computer Science
University of Texas at Dallas
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Sep 14 2007 - 18:36:05 EDT