Skip to main content



      Home
Home » Eclipse Projects » Sirius » Bordered Nodes rearrangement.(Bordered Nodes rearrangement on any Node's side.)
Bordered Nodes rearrangement. [message #1768901] Mon, 24 July 2017 14:25 Go to next message
Eclipse UserFriend
Hello. Some time ago I asked about rotating diagram in Sirius, after rotating layout diagram I noticed that Bordered Nodes were on top left corner by default (example.jpg). So the question is:
If there is any possibily to make that Bordered Nodes to be in any side of the Nodes and how can I do it?
There is the Authorized Sides in diagram design we can use, but it's not what I really need because there is no any way to put Bordered Nodes on non-Authorized Side.
Sincerely, Roman.
  • Attachment: example.jpg
    (Size: 37.47KB, Downloaded 170 times)
Re: Bordered Nodes rearrangement. [message #1768966 is a reply to message #1768901] Tue, 25 July 2017 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

If I understand correctly, you want that the bordered nodes be located on specific location when the diagram is created, but then the user can place them on a different border. Is it correct?
Indeed, in that case you will not be able to use the Authorized Sides[1] functionality. You will need to implement your own layout[2]. Note that when a user move a diagram element, its status becomes as "pinned" so it will not move at the next arrange all. Therefore, in your custom layout you will need to arrange only the unpinned border nodes (!new PinHelper().isPinned(dDiagramElement)).

Regards,
Steve

[1] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#authorizedsides
[2] https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom-arrange-all.html
Re: Bordered Nodes rearrangement. [message #1770111 is a reply to message #1768966] Tue, 08 August 2017 08:47 Go to previous message
Eclipse UserFriend
Yeah, you got it correctly, thank you for response, Steve!

Sincerely, Roman.
Previous Topic:Hide the "Style" and "Apperance" tabs in Properties View
Next Topic:Selected element overlaps others.
Goto Forum:
  


Current Time: Sun Jul 13 09:15:28 EDT 2025

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

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

Back to the top