Re: Visad string sets

Hi Santi,

You can create a FieldImpl with a TextType (i.e., Strings)
in its range. Rather than setSamples() to set al the range
values in one call, call:

  public void setSample(int index, Data range)

once for each range sample, with index counting up through
the samples and 'range' being a Text object (it contains a

You can find exmaples of this in the visad/examples directory
in the and programs.

Good luck,

On Mon, 18 Apr 2005, S Santos wrote:

> I've started work with VISAD few weeks ago and I would like to add String 
> types in a set. Is there any way to do this? What I have seen is methods like:
> setSamples(float[][]...
> setSamples(double[][]...
> what I would like to do is something like this
> setSamples(String[][]...
> Many thanks,
> Santi

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