Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Diagram layouts
Diagram layouts [message #840078] Mon, 09 April 2012 16:28 Go to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
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 08:22 Go to previous messageGo to next message
Joao S is currently offline Joao SFriend
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 08:23]

Report message to a moderator

Re: Diagram layouts [message #840789 is a reply to message #840553] Tue, 10 April 2012 14:14 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
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 14:48 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
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 15:02 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
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 15:11 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
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: Thu Apr 18 10:35:42 GMT 2024

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

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

Back to the top