|
Re: Native SWT drawing on Canvas with LWS [message #247704 is a reply to message #247666] |
Wed, 11 March 2009 13:14 |
Madhu Samuel Messages: 199 Registered: July 2009 |
Senior Member |
|
|
Hello Fuhrmann,
If you just want to draw in a draw2d figure, you can use the SWTGraphics
class. This is provided by Draw2d to give similar drawing capabilities of
swt's GC class.
Regards,
Madhu
Hauke Fuhrmann wrote:
> Hi there,
> I have a GMF FigureCanvas, which is a Canvas populated by a
> LightweightSystem with Figures.
> For debugging purposes I want to draw native SWT drawings on top of the
> LWS, i.e. simple lines, etc.
> I added a paint listener to the canvas and draw on the GC that I get
> from the PaintEvent.
> However, the Figures from the LWS are drawn correctly, while my own
> manual drawings are messed up. Only very small parts are shown and it
> looks like the LWS Figures have priority and replace my own drawings.
> Is there any reason for this? Any way to draw onto the canvas next to
> the LWS? I heard something about double buffering of Canvases. Maybe I
> have to disable this for the LWS? How?
> Cheers,
> Hauke
Regards,
Madhu
http://eclipsebible.com
|
|
|
Powered by
FUDForum. Page generated in 0.02694 seconds