GridLayer#paintGrid() is called twice after scrolling!? [message #221590] |
Wed, 16 August 2006 11:31 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03118 seconds