NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Responding to MouseClicks on plots

Hi, 

I have a fairly complex application producing several 2D visad plots. 

I notice that clicking the middle mouse button on the plot prints the
current X,Y values for that point. I want to extend this so that I can
be notified or these x,y values when the user clicks on the plot  and
then perform some additional tasks.

Is there a way to listen for this kind of event?

I have found that DisplayEvents are triggered when the user clicks on
the plot, but these events are only aware of the X,Y coors of the plot,
not the corresponding values.

I would very much appreciate any advice or tips.

Thanks, 
Oliver Mather
Software Engineer, 
omather@xxxxxxxxxx




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