Re: Access to Coordinates

Hi Vimal,

>     I noticed that when I click both mouse buttons at the same time I am able 
> to view the coordinates of the location my pointer is on at the
> top left corner of the window.  I was wondering whether this information (the 
> coordinates) is available to programmer's wanting to utilize
> this information in their own programs or whether it is encapsulated and 
> hidden away.  In other words is there a method that returns the
> coordinates and if so, which method does this?

Yes, VisAD is designed for a three button mouse, but
interprets pressing any two buttons as the other (third)
button in order to accomodate a two-button mouse.

Say is right about calling visad/DisplayRenderer.getCursorStringVector()
to get the strings from the top-left corner of the screen.
You can see an example of how it is called in

Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

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