Changing mouse behavior in VisAD

Hello,

Although it looks like I have filled my quota of questions, I've got a few more,
concentrating mostly in the area of mouse behavior, and handling mouse events.

The application that I am developing has the following requirements:

Right Mouse Button:
    - popup a menu (to have a shortcut to major display properties)

Left Mouse Button: Depending on the mode selected from a toolbar (kind of like 
photoshop,
only MUCH simpler)
    - move points around
    - draw a rectangle to have a zoom area

No mouse button pressed, simply moving the mouse:
    - get the x and y coordinates of the mouse and constantly update two text 
areas
outside the display, in the framing GUI (obviously one needs to capture 
whatever is in
setCursorStringVector and not only when LEFT+RIGHT are pressed, but always)

Please note that I am able to do all of the above in a pure Java2D application. 
(I can
even draw things on the existing display and move them around with my mouse, 
but they do
not seem to interact w/ the current visad display, as if they are on different 
"layers".)
For some reason my mouse listeners do not seem to capture anything on the 
display other
than the LEFT+RIGHT mouse buttons (which is not very convenient) and the drag 
and
SHIFT+left mouse button zoom.

I have gone over the list archives, and this seems to be the most helpful:

http://www.unidata.ucar.edu/staff/russ/visad/msg02015.html

however, even when I extend these classes, I have not been able to utilize them 
properly.

If one of you out there can give some pointers, it'll be much appreciated.

Cheers,

Tolga


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: