Ben,
If you are using 4.6 the layer will receive a MapMouseEvent This will tell
you which mousemode you are in.
Refer to the java doc:
(http://openmap.bbn.com/doc/api/com/bbn/openmap/event/MapMouseEvent.html)
If you are using an earlier version of OpenMap you can find the
MouseDelegator via the bean context and query it for the current mouse mode.
Brian Hudson
-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com] On
Behalf Of Ben Podoll
Sent: Wednesday, September 08, 2004 5:59 AM
To: openmap-users@bbn.com
Cc: 'Don Dietrick'
Subject: [OpenMap Users] detecting mouse mode(s)
I have a layer that I have accept mouse modes for 3 types (see below)
public String[] getMouseModeServiceList(){
String[] ret = new String[3];
ret[0] = SelectMouseMode.modeID;
ret[1] = NavMouseMode.modeID;
ret[2] = ZoomOutMouseMode.modeID;
return ret;
}
Now I have mouse event methods that run but I want to mix and match which
ones happen depending on the mouse mode the user is working in. How can I
determine that programmatically from my layer?
Thanks,
Ben
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"] -- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Wed Sep 8 08:26:38 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:39 EDT