Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Add LayoutAlgorithm in MinMap example
Add LayoutAlgorithm in MinMap example [message #1793713] Tue, 14 August 2018 13:28 Go to next message
João Pedro is currently offline João PedroFriend
Messages: 28
Registered: December 2014
Junior Member
I've been trying for a while but couldn't do it.

Where, if possible, can I add a LayoutAlgorithm to the MinMap example? (https://www.itemis.com/en/gef/tutorials/part-2-gef-mvc/)

For example the SpringLayoutAlgorithm().
Re: Add LayoutAlgorithm in MinMap example [message #1793772 is a reply to message #1793713] Wed, 15 August 2018 13:26 Go to previous messageGo to next message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 163
Registered: March 2015
Senior Member
Hi Joao,

the mind map tutorial should contain a chapter about layout integration IIRC.

I will have a closer look later today. Maybe I can give a minimal example.

Best regards,
Matthias

[Updated on: Wed, 15 August 2018 13:27]

Report message to a moderator

Re: Add LayoutAlgorithm in MinMap example [message #1794027 is a reply to message #1793772] Wed, 22 August 2018 15:46 Go to previous message
João Pedro is currently offline João PedroFriend
Messages: 28
Registered: December 2014
Junior Member
I was trying to implement this using the "GraphPart()" and adding it to the module Bindings like this:

		adapterMapBinder.addBinding(AdapterKey.defaultRole())
		.to(LayoutContext.class);
		
		
		adapterMapBinder.addBinding(AdapterKey.defaultRole())
		.to(GraphLayoutBehavior.class);


but I noticed that the MindMap example does not have org.eclipse.gef.graph.Nodes or Edges.

I've been trying for hours but still didn't manage to populate a Graph so that I can:
1-Set a layout Algorithm to that Graph
2-Use ELK on the Nodes and Edges of my Part

What am I missing?
Previous Topic:Undo/Redo button, ignore scroll down/up events
Next Topic:Connection: how to update control points
Goto Forum:
  


Current Time: Wed Nov 14 22:10:41 GMT 2018

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

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

Back to the top