Re: Acsii Characters

Hi Karan,

> I am working on ascii characters. I want to display
> the ascii chars on the display as a label. For Ex. say
> for the ascii code of heart is 3. I want to display
> these symbols(heart, spade, diamond, etc) on the
> display at some points as we do labelling. Is it
> possible using VisAD? Please suggest about the same.

You might be able to do it putting your ASCII Strings into
visad.Text objects and making a ScalarMap of their TextType
to Display.Text, then setting a Font in the TextControl.
There is an example in visad/examples/Test69.java.

If that doesn't work, you can create your own shapes and
display them using a ScalarMap to Display.Shape.

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


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