Grid Layout / Directed Graph Layout [message #177869] |
Fri, 15 April 2005 13: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 #178113 is a reply to message #177869] |
Mon, 18 April 2005 15:05 |
Eclipse User |
|
|
|
Originally posted by: mheinman.rumms.uni-mannheim.de
Hi Alan,
may be it will help you to take a look at the GraphLayoutManager in the flow
example.
The idea is, that your model elements represents the nodes of the graph and
the connections the edges of the graph. After you build your graph you are
able to calculate an "asthetic" layout with the DirectedGraphLayout of the
appropriated EditParts.
Best regards and good luck,
M.H.
"Alan Morgan" <a.morgan@pilz.ie> schrieb im Newsbeitrag
news:d3ogmn$sur$1@news.eclipse.org...
> 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 #178236 is a reply to message #178113] |
Tue, 19 April 2005 10:29 |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Michail,
Is there perhaps a simplier example somewhere of DirectedGraphLayout usage ?
I have been looking at the Flow example but I was hoping for the "Hello
World" equivalent for DirectedGraphLayout.
Thanks,
Alan.
"Michail Heinmann" <mheinman@rumms.uni-mannheim.de> wrote in message
news:d40ir2$olp$1@news.eclipse.org...
> Hi Alan,
>
> may be it will help you to take a look at the GraphLayoutManager in the
flow
> example.
>
> The idea is, that your model elements represents the nodes of the graph
and
> the connections the edges of the graph. After you build your graph you are
> able to calculate an "asthetic" layout with the DirectedGraphLayout of the
> appropriated EditParts.
>
> Best regards and good luck,
> M.H.
>
> "Alan Morgan" <a.morgan@pilz.ie> schrieb im Newsbeitrag
> news:d3ogmn$sur$1@news.eclipse.org...
> > 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 #178278 is a reply to message #178236] |
Tue, 19 April 2005 14:07 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Please checkout the draw2d.examples project from CVS. There is a FAQ on our
homepage which talks about how to load code from CVS.
In that project, you will find exactly what you want.
-Randy
|
|
|
Re: Directed Graph Layout [message #178411 is a reply to message #178278] |
Wed, 20 April 2005 11:54 |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Thanks Randy, I had a look at the examples you mentioned.
I tried to do a simple example of my own on the GEF editor I have been
working on.
This is what I have done so far :
I have created a DirectedGraph.
I have added a Node for each Figure on the Diagram.
The Node.data points to the Figure at the moment.
I have added an Edge for each connection on the Diagram.
Source and target of Edge point to Node representing Figure which is being
connected.
However when I call DirectGraphLayout.visit(DirectedGraph) I am not seeing
anything happening.
To be honest I'm not even sure what is supposed to happen.
Do I sound like I'm on the right track or have I missed the idea completely
?
And what about the Layout Role in the EditPart - what role does that play in
all this ?
Thanks,
Alan.
"Randy Hudson" <none@us.ibm.com> wrote in message
news:d433pt$7fn$1@news.eclipse.org...
> Please checkout the draw2d.examples project from CVS. There is a FAQ on
our
> homepage which talks about how to load code from CVS.
>
> In that project, you will find exactly what you want.
>
> -Randy
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02399 seconds