Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Debug Graphics (Draw2d/SWT)
Debug Graphics (Draw2d/SWT) [message #230135] Thu, 01 February 2007 20:31 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Is CreationToolEntry label no longer centered in GEF 3.2?
Next Topic:How to disable Restore Default Value menu in Properties view?
Goto Forum:
  


Current Time: Fri Apr 26 20:46:20 GMT 2024

Powered by FUDForum. Page generated in 0.02597 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top