Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » DirectGraphLayout requirements
DirectGraphLayout requirements [message #226492] Tue, 14 November 2006 15:43 Go to next message
Eclipse UserFriend
Originally posted by: mradamjee.yahoo.com

In the documentation for the DirectGraphLayout it says that the graph must
be connected. How serious is this requirement? What happens if the graph
is not connected? Will it work for simple graphs?

2. Are there any examples for using the org.eclipse.draw2d.graph package
to draw the graphs

3. I wrote a simple example to play around with this package but I end up
with a graph that goes from top to bottom instead of left to right, as I
was expecting (i.e. the x values computed by the DirectGraphLayout are
same for all of the points) Is that because my graph wasn't connected. Is
there a way to make it go left to right

Thanks
Re: DirectGraphLayout requirements [message #226499 is a reply to message #226492] Tue, 14 November 2006 15:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mradamjee.yahoo.com

For the left-to-right question, there was a answer posted some years back
"There is no support at this time for left-to-right. You could transpose
the
results of the layout to get left to right"

So if this feature is still not supported, how do I transpose
Re: DirectGraphLayout requirements [message #226527 is a reply to message #226492] Wed, 15 November 2006 16:39 Go to previous message
Eclipse UserFriend
Originally posted by: none.ibm.com

"Raheel" <mradamjee@yahoo.com> wrote in message
news:7bd717ccce634043e5e7be085f368fa3$1@www.eclipse.org...
> In the documentation for the DirectGraphLayout it says that the graph must
> be connected. How serious is this requirement? What happens if the graph
> is not connected? Will it work for simple graphs?

The graph no longer needs to be connected. The documentation is out of date.
What is a simple graph?

> 2. Are there any examples for using the org.eclipse.draw2d.graph package
> to draw the graphs

Yes, the FlowExample

> 3. I wrote a simple example to play around with this package but I end up
> with a graph that goes from top to bottom instead of left to right, as I
> was expecting (i.e. the x values computed by the DirectGraphLayout are
> same for all of the points) Is that because my graph wasn't connected. Is
> there a way to make it go left to right

DirectedGraph#setDirection(PositionConstants.EAST)
Previous Topic:KeyHandler
Next Topic:Label Decorators in Outline View
Goto Forum:
  


Current Time: Sun Oct 17 09:14:29 GMT 2021

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

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

Back to the top