Grid Layout / Directed Graph Layout [message #177869] |
Fri, 15 April 2005 09:41  |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Hi,
I want to be able to layout figures in a grid type manner.
I don't see any Grid Layout available in Draw2D.
Have I missed it or will something else do such as the Directed Graph
Layout.
I can't seem to find any documentation that explains the
DirectedGraphLayout.
Lil help ?
Cheers,
Alan.
|
|
|
|
|
|
|
Re: Directed Graph Layout [message #178519 is a reply to message #178411] |
Wed, 20 April 2005 12:45  |
Eclipse User |
|
|
|
This is a multipart message in MIME format.
--=_alternative 005BF7C585256FE9_=
Content-Type: text/plain; charset="US-ASCII"
I use the DirectedGraphLayout. After the call to "visit" there's still
more work to do. I then call a routine that I call "buildGraph" that for
each node and edge, adds them to the overall Figure. I'd attach my code,
but it's just based very closely on the example in the draw2d examples
"DirectedGraphDemo.java", so you'd be much better off looking at that. The
routine "buildGraph" exists in that demo and is quite close to my version.
--=_alternative 005BF7C585256FE9_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">I use the DirectedGraphLayout. After
the call to "visit" there's still more work to do. I then call
a routine that I call "buildGraph" that for each node and edge,
adds them to the overall Figure. I'd attach my code, but it's just based
very closely on the example in the draw2d examples "DirectedGraphDemo.java",
so you'd be much better off looking at that. The routine "buildGraph"
exists in that demo and is quite close to my version.</font>
--=_alternative 005BF7C585256FE9_=--
|
|
|
Powered by
FUDForum. Page generated in 0.04629 seconds