[OpenMap Users] menus on select from OMGraphicHandlerLayer subclass

From: Robert Najlis <rnajlis_at_cs.indiana.edu>
Date: Thu, 16 Sep 2004 20:30:23 -0400


I am working on my own subclass of OMGraphicHandlerLayer. I have been
able to get tooltips working on mousemovements, but I am having
troubles getting reactions to clicks.

  I would really like to get menus popping up.

I can get isSelectable and select to work, but I don't seem to be able
to get deselect and getItemsForOMGraphicMenu(OMGraphic) to be called.
(I am testing by just printing to the command line). I assume deselect
must be working in some way, as the list size for select remains the
same - but I don't see my System.out.println message getting called
from the deselect function.

Also, should I implement the functions mouseOver(MapMouseEvent) and
leftClick(MapMouseEvent) in my class?

Thanks a lot.


[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 Thu Sep 16 2004 - 20:33:53 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT