Re: Some questions about VisAD

Hello,

Bill Hibbard wrote:
Please send questions to visad-list@xxxxxxxxxxxxx rather
than just to myself or other individuals.

And take you time to browse through the documentation ;-)


On Mon, 16 Jun 2003, [iso-8859-1] Romaric BENECH wrote:


1) I hope it is better explained  :
About the graph, it is too little in my panel, i would like to increase its 
height and its width.


You can do this either with calls to the setRange() methods of
your ScalarMaps to XAxis, YAxis and ZAxis, or by calls to
the setMatrix() method of your ProjectionControl (you can see
examples Tes57.java and Test58.java in visad/examples/).

Perhaps what you want is this:
http://www.unidata.ucar.edu/staff/russ/visad/msg04075.html

see also
http://www.unidata.ucar.edu/cgi-bin/msgout?/glimpse/visad-list/2522

Bill explained how to change axes scales; this will "zoom in/out" but it won't increase the size of the display, which, being a java.awt.Component, gets resized as such. (This more Java AWT/Swing stuff.)



2) A little question again :
And when i change the scale with "RangeWidget", the curve is overflowing 
outside the graph. I would like it stays only into the graph.


You can replace the RangeWidget by explicit calls to
ScalarMap.setRange() to control how your data depictions are
scaled. If you need user interaction via RangeWidgets, you
can add a ScalarMapListener to the ScalarMaps whose ranges
are set by RangeWidgets, and ensure that ranges are within
certain bounds in their mapChanged() methods.


or you can clip your graph as described in:
http://www.unidata.ucar.edu/staff/russ/visad/msg02428.html

Clipping is not the same as setting ranges, so you have to choose which suits you best.

Also, setting range is mentioned in the tutorial...

Cheers,

Ugo


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