Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: display updates

>We have a GUI with JTabbedPanes and a different VisAD DisplayImplJ2D on
>each (so you can see only one display at a time). When we update the
>data, each display flashes on the GUI as the display updates leaving a
>display showing that doesn't correspond to the selected Tab. The only
>solution I found so far is to remove the data references from all the
>displays except the one on the active TabbedPane. Is there a better way
>te keep the hidden displays from showing themselves as they update?

Doug,

One thing you could try would be to remove the DisplayPanelJ2Ds from
the tabs that are hidden, and only add back the one that is currently
visible, so that the others don't act on calls to repaint().  Or you
could try setting the clipping rectangle of the non-visible displays
to size (0, 0).  I admit that I don't know much about Java2D though,
so I'm not sure if the latter option would work.

-Curtis


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690