Re: [visad] Display Range value on screen

Hi Devanshi,

You can try setting the cursorStringVector on mouse move.


It is not pretty straight forward.

You may have to add displayListener to the display with MOUSE_PRESSED_CENTER event enabled on display.

You may get the mouse screen coordinates then you may have transform them to display coordinates to Spatial ScalarMap Coordinates. then you may have to use them to find the corresponding range value from the visad data object being displayed.

It is a bit complex. I dont know if any example code is available in visad.examples. Can somebody throw some light on that?


On 05/24/2014 11:30 PM, visad-request@xxxxxxxxxxxxxxxx wrote:
Send visad mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of visad digest..."

Today's Topics:

    1. Display Range value on screen (Devanshi Prajapati)


Message: 1
Date: Sat, 24 May 2014 10:21:47 +0530
From: Devanshi Prajapati<prajapati.devanshi@xxxxxxxxx>
To: "visad@xxxxxxxxxxxxxxxx"<visad@xxxxxxxxxxxxxxxx>
Subject: [visad] Display Range value on screen
Content-Type: text/plain; charset="utf-8"

Hello all,

My file structure is like: ( Lat , Lon ) -->  Temp.
And I map Temp. value to Display.RGB
I get a 2D image on screen.

When I click on screen, I got Lat and Lon values printed, but I also want
the range value, that is "Temp." to be displayed on screen on a mouse click.
The image must be in 2D only.

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