Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » CompoundDirectedGraph doesn't support horizontal layout
CompoundDirectedGraph doesn't support horizontal layout [message #997171] Fri, 04 January 2013 04:08 Go to next message
sakop qq is currently offline sakop qq
Messages: 29
Registered: January 2013
Junior Member
Hi,

I am currently doing some layout stuff in graphiti, I am transforming all the nodes from graphiti to the form that is comaptible with CompoundDirectedGraph.java(draw2d),then recalculate the positions using the layout algorithm and finally transform back .

It worked smoothly. However,the whole graph is re-layouted in a vertical fashion,which you can see from the attachment.
I want to confirm if there is any corresponding way to set the graph in a horizontal way?
Thanks.
Re: CompoundDirectedGraph doesn't support horizontal layout [message #997203 is a reply to message #997171] Fri, 04 January 2013 07:53 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1527
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Sakob,

not sure, but the CompoundDirectedGraph uses a direction, default is
PositionConstants.SOUTH. By changing that you might be able to define the
direction of the layout.

Michael
Re: CompoundDirectedGraph doesn't support horizontal layout [message #997363 is a reply to message #997203] Mon, 07 January 2013 01:09 Go to previous message
sakop qq is currently offline sakop qq
Messages: 29
Registered: January 2013
Junior Member
Thanks,it works.
I tended to set the attributes of "layout" rather than the "graph" itself so that I was not able to find an entry point to set the orientation.
Thanks again for your suggestion.
Previous Topic:Need suggestion on programatically creating connection with diamond shape in between
Next Topic:Domain Models, Diagrams and Sphinx
Goto Forum:
  


Current Time: Fri Apr 18 14:16:19 EDT 2014

Powered by FUDForum. Page generated in 0.01614 seconds