KAN,
>Date: Fri, 5 Apr 2002 01:15:37 -0800 (GMT-08:00)
>From: "KAN.DENG" <KAN.DENG@xxxxxxxxxx>
>To: visad-list@xxxxxxxxxxxxx
>Subject: How to change the sample in FlatField?
The above message contained the following:
> According to VisAD Java Component Library Developer Guide (<A
> href="http://www.ssec.wisc.edu/~billh/guide.html#3.10">http://www.ssec.w
> isc.edu/~billh/guide.html#3.10</A>), "Most Data classes and metadata
> classes (of FlatField) are immutable", does it mean that users cannot
> interactively change the sample of a FlatField? In other words, is the
> following job possible?
> Suppose we have an isoContour, is it possible to allow
> the user to change the isoline by clicking mouse button? Since the
> isoContour is related to the sample of the FlatField, the above question
> is equivalent to change the sample of the field. Is that possible? If
> so, can anyone give me an instruction how to do it?
Range values of Field can be modified. See the Field.setSample,
Field.setSamples, and FlatField.setSamples() methods.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>