Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GridLayer#paintGrid() is called twice after scrolling!?
GridLayer#paintGrid() is called twice after scrolling!? [message #221590] Wed, 16 August 2006 11:31
Eclipse UserFriend
Originally posted by: exquisitus.eclipse.org

Hi,

I have extended ScalableFreeformRootEditPart in order to display two
GridLayers where one of these Layers is developed by myself, mainly
adapting GridLayer's paintGrid() code.
So if I'm scrolling in my GEF application the adapted GridLayer will be
not correctly displayed. I realized that paintGrid() is called two times
after I've scrolled in the editor window. The first time it is called
the graphics parameter holds the region of the new area that appears via
scrolling. The second time the graphics parameter contains the clip
region of the editor.

The funny thing about this is:
If I step through my code while being in debug mode the layer is
correctly displayed. If the application runs in normal mode my layer is
painted as if the paintGrid() method is only called with new revealed
region's in graphics parameter.

I think the interesting questions are:
- Why is paintGrid() called twice?
- And can one differ between these two parameters?

Thank you, Andreas
Previous Topic:people using gef
Next Topic:PropertySourceAdapterFactory bug?
Goto Forum:
  


Current Time: Tue Jan 14 17:50:47 GMT 2025

Powered by FUDForum. Page generated in 0.03118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top