Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.
Replies: 20 - Pages: 2   [ Previous | 1 2 ]
  Click to reply to this thread Reply
15. At 5:41 AM on Mar 5, 2007, Oliver Wahl Javalobby Newcomers wrote:

Re: Simple SWT Reflection Effect Demo

You have that update already? I was looking round the net for something just like that....
  Click to reply to this thread Reply
16. At 12:19 PM on Mar 5, 2007, Daniel Spiewak Javalobby Junkies wrote:

Re: Simple SWT Reflection Effect Demo

> I'd be interested too.
>
> BTW: In case you are care,
> "image.getImageData().height" is expensive. It says,
> "Take a operating system ready to draw image, convert
> it into an operaing system independent bucket of
> bits, then ask for the height field, then throw it
> away". You could do "image.getBounds()" instead and
> save that in a local to access the width and height.
> You couldn't have known this so don't worry about
> it. I don't mean to be picky.
>
> Steve

Oh, don't be sorry. :-) I had a hunch that getImageData() probably wasn't the best way to go about it, but I haven't actually looked through the image API since 2.1 and even then it was a pretty quick perusal. Thanks for the heads up!
Daniel Spiewak
ActiveObjects: an Easier Java ORM; Fuse: Resource Injection for Java
  Click to reply to this thread Reply
17. At 2:26 PM on Mar 5, 2007, Julian Summers Blooming Javalobby Member wrote:

Re: Simple SWT Reflection Effect Demo

I'm sure you must have come across many other examples of SWT code that could be simply rewritten to improve performance. How about an anti-snippets page, to compliment the SWT snippets, with similar examples.

Anyway, just a thought.
Julian Summers
Snefru Limited http://www.snefru.com
Makers of SQLCreator the SQL Query Tool
  Click to reply to this thread Reply
18. At 12:18 AM on Mar 12, 2007, Matthew Hall Javalobby Junkies wrote:

Re: Simple SWT Reflection Effect Demo

> > I've reworked the code with painting problems
> fixed
> > (and my other suggestions implemented). Would
> you
> > like a copy?
>
> Yes, definitely! :-) I'll post it as an update on
> the blog so that people are able to take advantage of
> your contributions.
>
> In the mean time, I'm working on some ideas for alpha
> compositing in SWT. I'll post them when I've got
> something working.

Daniel,

Sorry it took so long, I just got wrapped up in things at EclipseCon and forgot about this. I was doing some experimentation on the reflection demo so I'll have to back that off before I upload it to the thread.

BTW, is there a way to subscribe to a specific thread on EZ for e-mail delivery? Specifically I'd like a way to have threads that I comment on just automatically start sending me updates so I can keep up on the discussion. I looked in the "Your Profile" area, and also looked for a "subscribe to this thread" type link but didn't find anything. Am I missing something?

Matthew
PaperClips Printing Library for SWT
  Click to reply to this thread Reply
19. At 12:57 AM on Mar 12, 2007, Matthew Hall Javalobby Junkies wrote:

Re: Simple SWT Reflection Effect Demo

Daniel,

The updated code (including for Steve's comment on ImageData.width vs Image.getBounds().width) is attached to this post. Enjoy!

Matthew
PaperClips Printing Library for SWT
  Click to reply to this thread Reply
20. At 6:08 AM on Jul 19, 2008, Laurent Mihalkovic Javalobby Newcomers wrote:

Re: Simple SWT Reflection Effect Demo

I have been playing with some code that does the same things without some of the problems other people have encountered.

http://blog.laurentm.com/2008/07/advanced-swt-graphics/

thread.rss_message