Highlight a PictogramElement [message #770008] |
Fri, 23 December 2011 04:35 |
Kunal Prasad Messages: 18 Registered: September 2009 |
Junior Member |
|
|
Hi,
I am using Graphiti to develop a editor, where I wish to add debug feature. So user can see shapes getting highlighted when he steps from on node to another in the runtime. Right now I am able to just select the element, which results in change of selection for each node based on debug step.
However, the requirement is to highlight the current debug shape with a outer rectangle of red color. For this there is no direct support from Graphiti, I tried using GEF to draw the rectangle but, it immediately gets repainted due to paintShape method of GFAbstractShape.
So please suggest any effective way to highlight a shape in Graphiti editor, It would be added feature if we can perform some animation like blinking rectangle, or fly-in animation for the outer rectangle.
Thanks,
Kunal
|
|
|
|
|
|
Re: Highlight a PictogramElement [message #772216 is a reply to message #772178] |
Thu, 29 December 2011 09:23 |
Kunal Prasad Messages: 18 Registered: September 2009 |
Junior Member |
|
|
Hi All,
Thanks for the suggestions. I would like to bring one important point over here is that when a node is highlighted during debug process, change in diagram model is not acceptable since its a temporary rendering. It should behave as decorations from the tool behavior provider. Let us see the possibility to add a new type of decorator, or in other terms, let allow the user to have his own flavor of decorator, which never modifies the diagram model, but participates in the rendering / painting of the node.
I am still looking for a better solution, Hernan's idea is good, but surely will need new APIs in tool behavior to expose this functionality.
Thanks & Regards,
Kunal
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02869 seconds