Re: question about coordinate reading

Chen Zhang-

Chen Zhang wrote:
is it a way to set the number format for the coordinate reading when both
mouse button pressed down?

Only for Reals with MathType RealType.Time using
DateTime.setFormatPattern() since the DateTime class is
used to format these.  In general, though, this is done
through the Real.toValueString() method which calls
Float.toString().

The alternative would be to capture the values and
format them yourself and place them in a widget outside
the display.  This is pretty tricky, but can be done.
See:

http://www.unidata.ucar.edu/cgi-bin/mfs/89/1803?98#mfs

for some info on this.

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************



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