Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:25 Go to next message
Roman Rutsevich is currently offline Roman RutsevichFriend
Messages: 11
Registered: June 2017
Junior Member
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 148 times)
Re: Bordered Nodes rearrangement. [message #1768966 is a reply to message #1768901] Tue, 25 July 2017 08:58 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
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


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Bordered Nodes rearrangement. [message #1770111 is a reply to message #1768966] Tue, 08 August 2017 12:47 Go to previous message
Roman Rutsevich is currently offline Roman RutsevichFriend
Messages: 11
Registered: June 2017
Junior Member
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: Wed Apr 24 21:12:29 GMT 2024

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

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

Back to the top