How to have an icon on a Rectangle/ Container Shape? [message #912332] |
Thu, 13 September 2012 07:17  |
Eclipse User |
|
|
|
Hello All,
I have a scenario in which i need to have an icon on top of the Rectangle/ Container Shape.
Regarding this I have few questions
1) Is it possible to have an icon on top of a Rectangle / Container Shape ??
2) If Yes , then how is it possible??
3) If No then on what graphical element can we place an icon ??
Thanks in adavance
Regards,
Deepak P
|
|
|
|
|
Re: How to have an icon on a Rectangle/ Container Shape? [message #912458 is a reply to message #912345] |
Thu, 13 September 2012 12:05   |
Eclipse User |
|
|
|
A follow-up question about images: I would like to use a URL instead of
an ID (key into map of resource paths). I see that graphiti internally
uses an ImageDescriptor, since it supports resource paths. However, (if)
I have an ImageDescriptor that supports URLs and would like to extend
graphiti with it, to support URLImages, how could I do that?
Hallvard
On 13.09.12 04.47, Michael Wenz wrote:
> Deepak,
>
> that's possible, and there are several ways to do it:
> - each GraphicsAlgorithm (rectangle, ellipse,...) can have children,
> simply a an Image GraphicsAlgorithm as child
> - a container shape cna have several child shapes, each of theses shapes
> needs a GraphicsAlgorithm, simply use a Image for one of the shapes
> - there are decorators that can be added on top of each
> shape/GraphicsAlgorithm without changing a diagram (can e.g. be used to
> visualize errors).
>
> HTH,
> Michael
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04673 seconds