NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: setting the ranges of a function

  • To: Mathias Stümpert <atzes@xxxxxx>
  • Subject: Re: setting the ranges of a function
  • From: Bill Hibbard <billh@xxxxxxxxxxxxx>
  • Date: Fri, 12 Apr 2002 17:20:54 -0500 (CDT)
Hi Mathias,

> Is there an easy way to dynamically change the domain ranges for a
> function? Suppose I have a function that I want to plot with (x -> y). I
> would take a Linear1DSet as domain set for my FlatField. Now can I
> dynamically resample my field with a new Linear1DSet with other hi/low
> values, perhaps with the help of the mouse? See
> http://www.stuempert.de/java/ScrollingFunction.html for an example of
> what I mean.

To change the domain Set, you need to replace your Field
with a new Field, and pass the new Field to the setData()
method of a DataReferenceImpl that links the Fields to
DisplayImpls and/or CellImpls.

Cheers,
Bill


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