|Re: Multiple decorators : expected behaviour? [message #726103 is a reply to message #726093]
||Fri, 16 September 2011 15:10
| Hernan Gonzalez
Registered: October 2010
Location: Buenos Aires, Argentina
Well, after looking inside the code, (PictogramElementDelegate.decorateFigure) it seems that decorators are just stacked, so that's all |
I wonder if some alternative decorators could be implemented, apart from ImageDecorator... specially I'd like to have some "highligting" decorators, either drawing some border or changing the background colour. I'll give it a look.
Another thing: I see that the decorateFigure() is called for every figure refresh (eg, when I move it), and that it instantiates a new DecoratorImageFigure() each time. This extends a ImageFigure (draw2d), which states in its docs: "Note that it is the client's responsibility to dispose the given image. There is no "free" resource management in draw2d." I know little of Draw2d/SWT, can someone who knows better confirm that there is no danger of resource leak here?
[Updated on: Fri, 16 September 2011 15:10]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02412 seconds