Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Diagram layouts
Diagram layouts [message #840078] Mon, 09 April 2012 12:28 Go to next message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Hi all...

The other thing I've been struggling with is diagram layouts. I have a simple flow-style diagram that shouldn't be too difficult to auto-layout, but haven't seen a good way to implement it.

Is there a better way than hand-coding individual shape locations during the import process?

Thanks again!
--Fitz
Re: Diagram layouts [message #840553 is a reply to message #840078] Tue, 10 April 2012 04:22 Go to previous messageGo to next message
Joao S is currently offline Joao S
Messages: 51
Registered: January 2011
Member
You can take a look at graphiti FAQ, it has a topic on this:

http://www.eclipse.org/graphiti/developers/faq.php

By the way, there was recently a discussion on integrating Kieler layout algorithms into Graphiti:

http://www.eclipse.org/forums/index.php/t/320714/

Joao

[Updated on: Tue, 10 April 2012 04:23]

Report message to a moderator

Re: Diagram layouts [message #840789 is a reply to message #840553] Tue, 10 April 2012 10:14 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Joao,

Thanks for the link. Already found that and was playing with it but didn't get far. Do you have an example where it works for nested container shapes? I have a diagram with a root container shape that contains several container shapes of its own. And I've mangled the example code to get it to do some very intriguing things with the diagram, but not exactly what I want (i.e. the diagram becomes huge and things get moved and resized quite oddly).

Layouts are definitely not my forte.
Re: Diagram layouts [message #840818 is a reply to message #840789] Tue, 10 April 2012 10:48 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
And I did find this forum post:

http://www.eclipse.org/forums/index.php/m/758628/

Which offers a way to use a Zest layout, but it doesn't seem to work for my nested diagram approach...
Re: Diagram layouts [message #840828 is a reply to message #840818] Tue, 10 April 2012 11:02 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 511
Registered: July 2009
Senior Member
In a layout dialect I think this is called "clusters".
Have a look at graphviz, it may provide the layouter you need.
Re: Diagram layouts [message #840836 is a reply to message #840828] Tue, 10 April 2012 11:11 Go to previous message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Interesting... Thanks for the suggestion.
Previous Topic:Simple example of wrapping the diagram editor for a standalone Graphiti-based file editor?
Next Topic:Differents editors with the same diagram
Goto Forum:
  


Current Time: Sat Apr 19 12:02:02 EDT 2014

Powered by FUDForum. Page generated in 0.02468 seconds