Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Benefits of draw2D over drawing with SWT
Benefits of draw2D over drawing with SWT [message #186564] Tue, 05 July 2005 19:45 Go to next message
Brad Reynolds is currently offline Brad ReynoldsFriend
Messages: 309
Registered: July 2009
Senior Member
I'm looking to implement a custom drawn control. Like many others I
need a Table that fulfills the requirements of my employer and the
native SWT Table won't fulfill our requirements. I've looked at the
Table implemented in GEF and decided that I didn't need the overhead of
GEF for a Table. I also looked at KTable (a SWT Table implementation)
and although it seemed like it got the job done I like having the
framework that draw2D provides. So I'm playing around with implementing
our own Table. I like the JFace approach in that the MVC layer is
outside of the base component and not built into the core widget and was
hoping to develop a Table that followed this same pattern.

I like what draw2D provides but I want to make sure that I'm not
overlooking some part of SWT that isn't exposed in draw2D that I will
need later on. My assumption has been that draw2D is a framework that
utilizes SWT that doesn't limit my visibility to SWT abilities. It
looks like it exposes most of what SWT does in draw2D specific classes
but also adds layouts, update manager for drawing efficiency, and base
implementations of widgets like Buttons and Labels.

Is there something that I'm missing or misunderstanding? Am I making
any incorrect assumptions? Any advice is greatly appreciated.

Thanks,
Brad
Re: Benefits of draw2D over drawing with SWT [message #186871 is a reply to message #186564] Thu, 07 July 2005 06:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

"Brad Reynolds" <bradleyjames@gmail.com> wrote in message
news:daeo19$a1a$1@news.eclipse.org...
> I'm looking to implement a custom drawn control. Like many others I
> need a Table that fulfills the requirements of my employer and the
> native SWT Table won't fulfill our requirements. I've looked at the

What are these requirements?

> Table implemented in GEF and decided that I didn't need the overhead of
> GEF for a Table. I also looked at KTable (a SWT Table implementation)
> and although it seemed like it got the job done I like having the
> framework that draw2D provides. So I'm playing around with implementing
> our own Table. I like the JFace approach in that the MVC layer is
> outside of the base component and not built into the core widget and was
> hoping to develop a Table that followed this same pattern.
>
> I like what draw2D provides but I want to make sure that I'm not
> overlooking some part of SWT that isn't exposed in draw2D that I will
> need later on. My assumption has been that draw2D is a framework that
> utilizes SWT that doesn't limit my visibility to SWT abilities. It

All GC-releated functionality (painting, clipping, advanced graphics) is
supported.

> looks like it exposes most of what SWT does in draw2D specific classes
> but also adds layouts, update manager for drawing efficiency, and base
> implementations of widgets like Buttons and Labels.
>
> Is there something that I'm missing or misunderstanding? Am I making
> any incorrect assumptions? Any advice is greatly appreciated.
>
> Thanks,
> Brad
Re: Benefits of draw2D over drawing with SWT [message #186912 is a reply to message #186871] Thu, 07 July 2005 15:12 Go to previous message
Brad Reynolds is currently offline Brad ReynoldsFriend
Messages: 309
Registered: July 2009
Senior Member
Thank you for the response.

For requirements:

- sort icon in column header (SWT is actually making progress on this
according to the bug)
- lock columns
- column groupings (multiple headers)
- more flexibility around content that can be in a cell
- get around bugs in the Windows Table implementation
- cell spanning multiple columns
- wrapping of text in cells

Those are just a few big ones.

Also I probably should have worded the initial post a little differently
in that I was curious if there were any disadvantages in using draw2d
for a drawing framework. I haven't had any issues yet that couldn't be
solved but wanted to make sure that I wasn't going to run into something
down the road that others have already.

Thanks.

Pratik Shah wrote:
> "Brad Reynolds" <bradleyjames@gmail.com> wrote in message
> news:daeo19$a1a$1@news.eclipse.org...
>
>>I'm looking to implement a custom drawn control. Like many others I
>>need a Table that fulfills the requirements of my employer and the
>>native SWT Table won't fulfill our requirements. I've looked at the
>
>
> What are these requirements?
>
>
>>Table implemented in GEF and decided that I didn't need the overhead of
>>GEF for a Table. I also looked at KTable (a SWT Table implementation)
>>and although it seemed like it got the job done I like having the
>>framework that draw2D provides. So I'm playing around with implementing
>>our own Table. I like the JFace approach in that the MVC layer is
>>outside of the base component and not built into the core widget and was
>>hoping to develop a Table that followed this same pattern.
>>
>>I like what draw2D provides but I want to make sure that I'm not
>>overlooking some part of SWT that isn't exposed in draw2D that I will
>>need later on. My assumption has been that draw2D is a framework that
>>utilizes SWT that doesn't limit my visibility to SWT abilities. It
>
>
> All GC-releated functionality (painting, clipping, advanced graphics) is
> supported.
>
>
>>looks like it exposes most of what SWT does in draw2D specific classes
>>but also adds layouts, update manager for drawing efficiency, and base
>>implementations of widgets like Buttons and Labels.
>>
>>Is there something that I'm missing or misunderstanding? Am I making
>>any incorrect assumptions? Any advice is greatly appreciated.
>>
>>Thanks,
>>Brad
>
>
>
Previous Topic:Class not found
Next Topic:a way to restrict the size of Labels?
Goto Forum:
  


Current Time: Sat Apr 20 01:33:18 GMT 2024

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

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

Back to the top