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: Rubber band zoom

Schaerfke, Marco, Dr., Xzillion/DE wrote:
Dear Reader,
I am looking for way to implement a rubberband zoom function for a 2D
display. Unfortunately I have not found a solution.
Any suggestions ?

See http://www.unidata.ucar.edu/staff/russ/visad/msg03136.html

for a further example of how to use a rubber band box renderer, and don't forget the calls:

  xmap.setRange(samples[0][0], samples[0][1]);
  ymap.setRange(samples[1][0], samples[1][1]);

as Bill pointed out.

Ugo

Thank you for your help

Regards

Marco




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