Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Aligning leaf and root nodes to the borders
Aligning leaf and root nodes to the borders [message #482474] Wed, 26 August 2009 16:58 Go to next message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

I have a layout problem. I applied the leftright and topdown layout to my
diagram and it works fine. Now I want to align the leafs (nodes without
outgoing relations) and leafs (nodes without incoming relations) to the
right and left border.

Is there a way to do that in GMF or do I have to implement my own layout?
If so, how do one implement a layout. I managed to go into the
layoutprovider and after it is done with its layout, I just iterate
through all the nodes and set the bounds, but this seems to me as a very
dirty and not efficient way of implementing this.

Is there an efficient way of doing that in GMF?

Best regards,
Artur
Re: Aligning leaf and root nodes to the borders [message #908456 is a reply to message #482474] Wed, 05 September 2012 12:14 Go to previous message
Viraj Rajaguru is currently offline Viraj RajaguruFriend
Messages: 3
Registered: December 2011
Location: Sri Lanka
Junior Member
Hi Artur,

You don't need to implement a custom layout. You can set "affixedParentSide" attribute for Node to EAST or WEST in .gmfgraph model


Regards,
Viraj.
Previous Topic:NullPointerException when exiting my sample GMF editor
Next Topic:separate property box while double clicking the node
Goto Forum:
  


Current Time: Wed Feb 05 06:57:10 GMT 2025

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

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

Back to the top