At the end of the BufferedMapBean's painting process, the paintListeners
are notified so that they can paint on the MapBean's graphics, then a last
"paintBorder" call is done.
But the Graphics object's state may have been changed by one of the paint
So the border will be painted using the changed state.
For instance, I have a mouseMode which is a paintListener, and which draws
rectangles in its listenerPaint method. These rectangles are OMRects with a
When this mouseMode is the last paintListener to receive the listenerPaint
call, the graphic's stroke keeps being the one used for the rectangles !
That's why the paintBorder method of the mapBean will paint the border
using this stroke !
There should be something to store and restore the graphics state somewhere !!
I think this should be in the mapBean's paintChildren method... But the
right thing to do may be something else! Can someone help me ?
Thanks a lot again !
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Sep 11 2006 - 08:05:17 EDT