I would suggest looking at these VisAD examples:
If you are using Jython, however, I suggest you look in the subs.py
module at the "drawString()" method (plus the init() method that does
the scalar mappings).
I will have to let others comment on how to tie these to the cursor position....
Hope this helps.
On Wed, Aug 4, 2010 at 4:59 AM, Nguyen Tam Chinh <chinh@xxxxxxxxxx> wrote:
> Dear All,
> I just started with Visad programming recently so quite new to everything.
> There is one problem that cracks my head for the last 2 days is to control
> the text on the 2D or 3D display.
> For example I have DisplayImplJ3D showing a 3D plot from netcdf. I'd like to
> put a of text or label/annotation ontop but seems it's not straight-forward
> to do. I'd like to be able to control the text content so that I can
> manipulate the content according to the current cursor position.
> Would you please kindly advise what is the best way to do this? I'm using
> SWT_AWT bridge.
> Thank you so much!
> With best regards,
> PS. Seems not many people use visad around, Google hardly gives me good
> search result ...
> visad mailing list
> For list information, to unsubscribe, visit:
University of Wisconsin-Madison
Space Science & Engineering Center (SSEC)
Cooperative Institute for Meteorological Satellite Studies (CIMSS)
1225 W. Dayton Street
Madison, WI 53706 USA
ph: +1 608 262 2759