Debug Graphics (Draw2d/SWT) [message #230135] |
Thu, 01 February 2007 20:31 |
Eclipse User |
|
|
|
Originally posted by: anthony.cunningham.NOduolog.comSPAM
Hi everyone,
I seem to remember from a swing/java graphics tutorial once about a
setting called debug graphics or something like that where you could
enable a debugging mode where all graphics/controls were painted slowly on
the screen so you could visually watch components drawing to check for
errors/failures. I wondered if something similar exists in Draw2D so that
each figure gets drawn a second or so after each other , sort of like a
visual step through.
Does anyone know of functionality like that or how to replicate/fake it?
Thanks in advance,
Anthony
|
|
|
Re: Debug Graphics (Draw2d/SWT) [message #230151 is a reply to message #230135] |
Fri, 02 February 2007 15:47 |
Eclipse User |
|
|
|
Originally posted by: none.ibm.com
You could subclass SWTGraphics and override checkGC() to insert a delay.
Also, make sure the Canvas is not double-buffered, and the graphics source
is NativeGraphicsSource.
"Anthony.Cunningham" <anthony.cunningham@NOduolog.comSPAM> wrote in message
news:2948cee9cfeaed819a8630c33c44e975$1@www.eclipse.org...
> Hi everyone,
> I seem to remember from a swing/java graphics tutorial once about a
> setting called debug graphics or something like that where you could
> enable a debugging mode where all graphics/controls were painted slowly on
> the screen so you could visually watch components drawing to check for
> errors/failures. I wondered if something similar exists in Draw2D so that
> each figure gets drawn a second or so after each other , sort of like a
> visual step through.
> Does anyone know of functionality like that or how to replicate/fake it?
>
> Thanks in advance,
>
> Anthony
>
|
|
|
Powered by
FUDForum. Page generated in 0.03503 seconds