DirectGraphLayout requirements [message #226492] |
Tue, 14 November 2006 15:43 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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)
|
|
|
Powered by
FUDForum. Page generated in 0.02158 seconds