Re: ScalarType: name cannot contain space

Hi Doug,

> Is there a (good) reason why a ScalarType name "cannot contain space . (
> or )"? I'd like to create RealTypes with nice names for display purposes
> (e.g. "Wind Direction") but:
> . . .

There are a number of places where VisAD parses MathType
strings, and there may be applications out there that depend
in some way on the fact that ScalarType names do not contain
spaces.  However, I have added a method to ScalarMap:

  public void setUnderscoreToBlank(boolean u2b);

If you call it with u2b = true, then "_" will be replaced
by " " in the name of the ScalarMap's ScalarType, in display
axis labels, and in widgets.  See and
in the visad/examples directory for demos of how to use this.

I hope this addresses your needs.

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: