|Rotate graphical object [message #756453]
||Sun, 13 November 2011 14:39
| Julien Mising name
Registered: October 2011
In my graphiti model, I have a triangle. However, I would like to rotate the triangle depending on its position. For that, I set up a function that checks first if the triangle can be moved (by extending the DefaultMoveShapeFeature).
So, now, I would like to be able to change the way the triangle is shown once he has been moved. So, I would like to know :
- Where can I put code that would be called once the triangle is moved ? Can I just call the post/pre-move function of the DefaultMoveShapeFeature inherited class ?
- How can I change the layout of the triangle and rotate it ? Is there some code example about that ? If there is no easy way to do so, can I remove the triangle and add a new one, without loosing the association with the business object ?
Thanks in advance for any hints/comments regarding this topic,
Powered by FUDForum
. Page generated in 0.12412 seconds