Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

detecting which dataRef the mouse is over

In a simple 2D plotter built with visad, I'd like to detect which 
line (or lines) the mouse is over.  I have registered a DisplayListener
on the Display, but I am uncertain how to do two things:

   - detect mouse motion events (now I just get MOUSE_PRESSED and RELEASEd)
   - figure out which line the mouse is over
   - display a small tooltip-like tranisent window on top of the display, 
     announcing the name of the line.

Tips on any of these points will be most welcome!

 - Paul


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