Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: VisAD threading problems

Hi Ian,

> I'm getting some occasional display update problems, and I'm suspicious that
> VisAD is updating Swing components from outside the UI thread. . . .

Sure is. In a DisplayImplJ2D, which you mention, getGraphics().drawImage()
is invoked for the VisADCanvasJ2D, which extends JPanel, from the
"rendering" Thread constructed by the VisADCanvasJ2D. This Thread is
triggered by:

1. AnimationControlJ2D for animation.
2. Any event triggering re-transform of Data into depictions.
3. User mouse interactions to pan or zoom the display.

Is this improper behavior for a class extending JPanel? I will
be happy to change this, as long as it can accomodate redraws
triggered by the three types of event I listed.

Cheers,
Bill


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