Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [ZEST] Right Tree Layout algorithm
[ZEST] Right Tree Layout algorithm [message #1775206] Thu, 26 October 2017 09:52 Go to next message
Syamkumar Cheedela is currently offline Syamkumar CheedelaFriend
Messages: 7
Registered: April 2011
Junior Member
I am very new to GEF/ZEST. For one of my use case i wanted to display models in graphical tree representation.

Below zest algorithms i have tried.

TreeLayoutAlgorithm is showing the diagram as below

HorizantalTreeLayoutAlgorithm is showing the diagram as below

But what i wanted is Right sided Tree as shown below. Can anyone hint me how to proceed here?

[Updated on: Thu, 26 October 2017 09:54]

Report message to a moderator

Re: [ZEST] Right Tree Layout algorithm [message #1775364 is a reply to message #1775206] Sat, 28 October 2017 11:30 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: L√ľnen
Senior Member
I think that kind of layout is not covered by one of the existing layout algorithms. You would have to implement a custom one.
Re: [ZEST] Right Tree Layout algorithm [message #1785398 is a reply to message #1775364] Fri, 13 April 2018 13:22 Go to previous message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
Hi Syamkumar,

in addition to Alexander proposal, you could utilise Graphviz for computing the layout (using hidden nodes, invisible edges, ranking, and subgraphs to influence the Graphviz default). You can take a look at the "DotLayoutExample" for how to delegate to Graphviz for laying out.

Apart from that, you could delegate to another layout library, e.g. Eclipse Layout Kernel (ELK), for computing the layout. There might already be an algorithm available for such a tree layout.

Matthias and Tamas
Previous Topic:GEF5 Export Diagram as SVG
Next Topic:[GEF5] IVisualPart for javafx.scene.control.Tab
Goto Forum:

Current Time: Sun Dec 10 08:50:16 GMT 2023

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

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

Back to the top