[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Double Buffering and SWT

"Halldór Ísak Gylfason" <hgylfason@xxxxxxxxxxxx> wrote in message
news:b8jfr9$204$1@xxxxxxxxxxxxxxxx
> I am just looking at this draw2D. I'm wondering what it's relationship to
> SWT is? It does seem to include partly the same functionality. There are

It is a separate lightweight system hosted on a single SWT Canvas. Figures
(lightweight composites) can receive some UI events like mouse events.
Since SWT MouseEvent contains a widget field, and not a figure field, it is
necessary to send a different event type to the figure.

Layout in draw2d is different than SWT.  It is more similar to AWT.
Layout's occur automatically and they only happen once.  They are
coordinated with repaints, so that deferred layouts always happen before any
painting occurs.  You can also checkout the org.eclipse.draw2d.examples
project from CVS for more "snippets".

> some layout managers that do not inherit from the SWT layout hierarchy.
> There are also MouseListeners that are already part of SWT.
>
>
> "Randy Hudson" <none@xxxxxxxxxx> wrote in message
> news:b8jb7t$s9f$1@xxxxxxxxxxxxxxxx
> > Have you seen draw2d?  It is part of GEF at:
> > http://www.eclipse.org/gef
> >
> > draw2d uses only SWT to produce double-buffered drawings.
> >
> > "Halldór Ísak Gylfason" <hgylfason@xxxxxxxxxxxx> wrote in message
> > news:b8j2gg$jq6$1@xxxxxxxxxxxxxxxx
> > > I am currently doing a SWT application that embeds a simple 2D drawing
> > > capability. I can't seem to find where to turn on double buffering in
> SWT.
> > > Can anyone enlighten me?
> > >
> > > Halldor
> > >
> > >
> >
> >
>
>