|
Re: Seeking advice on customizing graph layout behavior [message #138419 is a reply to message #138312] |
Wed, 16 June 2004 14:02 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Tom Johnson" <tdjohns1@rockwellcollins.com> wrote in message
news:cank7v$5so$1@eclipse.org...
> First let me thank the GEF team for the Draw2D and .graph
> package, as well as the excellent examples.
>
> I've used the GEF "flow" example as a starting point for a simple
> graph editor. I call it 'simple' because my requirements don't
> require a fully general purpose directed (possibly cyclic) graph layout
> algorithm.
>
> Nonetheless, I started with the "flow" example to learn the proper
> relationships between EditPart, Figure, etc. and I think it helped
> a lot.
>
> Basically I want to control the layout of the nodes so that
> they're positioned from left to right. I have read Randy Hudson's
> advice from a while back ...
>
> > There is no support for horizontal orientation. Use the class
> > Transposer for this.
>
> and I don't see where that advice should be applied. Since most
> of the GraphVisitor classes are in the ..draw2d.internal.graph
You would use this before and after invoking the public class,
DirectedGraphLayout.
> package, I assume that I'm supposed to create my own sequence of
> visitors. However, it sounds as if I'd likely have to rework my
> new code in the future if/when the 'internal' classes change.
>
> Maybe using the (very nice) general purpose graph layout is overkill,
> and I should just be using Draw2D myself to draw the one or two
> cycles and connections between my (mostly disconnected) subgraphs?
Post a picture of what you are trying to layout.
>
> Regards,
>
> Tom Johnson
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03158 seconds