Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Layout Kernel » what MrTree layout algorithm ID
what MrTree layout algorithm ID [message #1750380] Tue, 20 December 2016 14:29 Go to next message
Abhishek Chakraborty is currently offline Abhishek ChakrabortyFriend
Messages: 69
Registered: July 2009
Location: Cologne, Germany
Member

I am able to use Layered algo , but I am not able to find the MrTree Algorithm ID.



configurator.configure(KNode.class)
.setProperty(CoreOptions.ALGORITHM, "org.eclipse.elk.layered"/*LayeredOptions.ALGORITHM_ID*/)
.setProperty(LayeredOptions.CROSSING_MINIMIZATION_STRATEGY, CrossingMinimizationStrategy.LAYER_SWEEP)
.setProperty(CoreOptions.INTERACTIVE, true)
.setProperty(LayeredOptions.SPACING_NODE, 20.0f)
.setProperty(LayeredOptions.EDGE_ROUTING, EdgeRouting.ORTHOGONAL)
.setProperty(CoreOptions.SPACING_BORDER, 2f)
.setProperty(LayeredOptions.DIRECTION, Direction.DOWN);


Regards,
Abhishek Chakraborty
Re: what MrTree layout algorithm ID [message #1750419 is a reply to message #1750380] Tue, 20 December 2016 21:08 Go to previous messageGo to next message
Christoph Daniel Schulze is currently offline Christoph Daniel SchulzeFriend
Messages: 80
Registered: September 2015
Member
Hi Abhishek,

yes, sorry about that - we are currently working on generating all necessary documentation for the different layout algorithms. For now, simply use the following ID:

org.eclipse.elk.force

With the next release (or the current nightlies), using the following constant is safer and preferred:

org.eclipse.elk.alg.force.properties.ForceOptions.ALGORITHM_ID
Re: what MrTree layout algorithm ID [message #1750473 is a reply to message #1750380] Wed, 21 December 2016 13:35 Go to previous messageGo to next message
Ulf Rueegg is currently offline Ulf RueeggFriend
Messages: 21
Registered: February 2010
Junior Member
Since you were asking for tree, not force: org.eclipse.elk.mrtree.mrTree.

There's a part in the generator code that omits the last part of the id if it's duplicated (e.g. ...force.force). However, it seems to be case sensitive, which is why the mrTree's id is different. I guess we should change the algorithm id to 'mrtree'. cds?
Re: what MrTree layout algorithm ID [message #1751108 is a reply to message #1750473] Wed, 04 January 2017 14:21 Go to previous message
Christoph Daniel Schulze is currently offline Christoph Daniel SchulzeFriend
Messages: 80
Registered: September 2015
Member
Ulf Rueegg wrote on Wed, 21 December 2016 13:35
Since you were asking for tree, not force: org.eclipse.elk.mrtree.mrTree.


Oops... Very Happy

Ulf Rueegg wrote on Wed, 21 December 2016 13:35
There's a part in the generator code that omits the last part of the id if it's duplicated (e.g. ...force.force). However, it seems to be case sensitive, which is why the mrTree's id is different. I guess we should change the algorithm id to 'mrtree'. cds?


Done. See this issue.
Previous Topic:Border node "inside" its container
Next Topic:KIELER Siguyama layout algorithm equivalence in ELK
Goto Forum:
  


Current Time: Fri Oct 19 07:07:37 GMT 2018

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

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

Back to the top