Skip to main content



      Home
Home » Eclipse Projects » Sirius » Automatic Figure Rotation (Rotation Figure after shift position)
Automatic Figure Rotation [message #1749293] Mon, 05 December 2016 04:08 Go to next message
Eclipse UserFriend
Dear all,

in my Sirius editor i have node and border node. The later are attached to node. Please, see Img1.

I would like that when shift the border node position on node, the border node can change...For example, automatically rotate to some degree.
In Img2, you can see that the image is the same.

I thing that i need to use more image, that changing related to border node on the node.
But How?

Thank a lot for your time
  • Attachment: Img2.png
    (Size: 16.99KB, Downloaded 198 times)
Re: Automatic Figure Rotation [message #1749294 is a reply to message #1749293] Mon, 05 December 2016 04:10 Go to previous messageGo to next message
Eclipse UserFriend
..and Img1
  • Attachment: Img1.png
    (Size: 12.56KB, Downloaded 200 times)
Re: Automatic Figure Rotation [message #1749311 is a reply to message #1749293] Mon, 05 December 2016 06:18 Go to previous messageGo to next message
Eclipse UserFriend
I don't know *how* it works, but I know that this is done in Capella (https://polarsys.org/capella/). On this page there is a screenshot with ports that contain small arrows that are rotated automatically. You could try and investigate their .odesign/sourcecode.
Re: Automatic Figure Rotation [message #1749319 is a reply to message #1749293] Mon, 05 December 2016 07:58 Go to previous message
Eclipse UserFriend
Hi Francesco,

You can find this kind of feature in UML Designer for required interface, there is a rotatable figure whose angle depends on the source edge direction (only four different positions corresponding for the moment). The code is here : https://github.com/ObeoNetwork/UML-Designer/tree/master/plugins/org.obeonetwork.gmf.runtime.diagram.ui.extension

You will find how to use it in the the schema documentation

You can also how it is declared in ULM Designer: look for point="org.obeonetwork.gmf.runtime.diagram.ui.extension.rotatableNode" in
https://github.com/ObeoNetwork/UML-Designer/blob/master/plugins/org.obeonetwork.dsl.uml2.design/plugin.xml

You can see them work on the Component Diagram:http://obeonetwork.github.io/UML-Designer/ref-doc/define-the-application.html#Component_Diagram

Regards,

Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Workaround for Execution of Creation Tools on different Container
Next Topic:Error (Sequence Diagram for my DSL)
Goto Forum:
  


Current Time: Sat Jul 12 08:16:16 EDT 2025

Powered by FUDForum. Page generated in 0.07625 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top