There is no magic going on in GEF.

Here is some background on what goes on in GEF during a paint.

JGraphInternalPane is the swing component on which the diagram is
displayed, the paint of everything is triggered when the swing
framework calls its paint method.

1. The paintComponent method of JGraphInternalPane is overridden to
call Editor.paint.
Editor.paint in turn calls the paint methods of all its layers and
selections and modes.

2. That results in paint being called on the LayerDiagram this calls
paint on all its contained Figs.

3. FigGroups call the paint method of their child Figs.

Editor.paint is synchronized but I don't see that is of much use.

Would an acceptable solution be to fix this in GEF by using a
synchronized list in FigGroup to contain its child Figs? Similar for
Figs in a Layer. I can do a new build of GEF and send it to the user
to confirm the fix.

Bob.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to