Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Draw2D] Circle/Oval Layout?
[Draw2D] Circle/Oval Layout? [message #144120] Fri, 23 July 2004 03:56 Go to next message
Eclipse UserFriend
Originally posted by: ckng.nrg.cs.usm.my

Hi,

Anyone know if there is any layout that can place Figures in a circular/oval
fashion like depicted below, where o are the Figures (number denotes the
layout sequence). Or have idea which existing layout can be
duplicated/modified to get such functionality..

o1
|
4o--o--o2
|
o3

o o5
|/
o--o--o
/|\
7o o o6

I'm thinking maybe can reuse some code from FanRouter, but I couldnt get it
to work properly.

Thanks

Regards,
CK Ng
Re: [Draw2D] Circle/Oval Layout? [message #144176 is a reply to message #144120] Fri, 23 July 2004 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Routers only affect connections, not nodes. You need a layout which places
nodes based on their connections. This could be done by writing your own
layout manager which takes constraints or something similar. You could set
constraints on each node indicating which other nodes it is attached to.
Or, you could just invent some new API for your layout which allows you to
push all of the information into it.

Once you place the nodes, connection could be router simply using chopbox
anchors or similar.

"CK Ng" <ckng@nrg.cs.usm.my> wrote in message
news:cdq22d$esc$1@eclipse.org...
> Hi,
>
> Anyone know if there is any layout that can place Figures in a
circular/oval
> fashion like depicted below, where o are the Figures (number denotes the
> layout sequence). Or have idea which existing layout can be
> duplicated/modified to get such functionality..
>
> o1
> |
> 4o--o--o2
> |
> o3
>
> o o5
> |/
> o--o--o
> /|\
> 7o o o6
>
> I'm thinking maybe can reuse some code from FanRouter, but I couldnt get
it
> to work properly.
>
> Thanks
>
> Regards,
> CK Ng
>
>
Re: [Draw2D] Circle/Oval Layout? [message #144248 is a reply to message #144176] Sat, 24 July 2004 03:05 Go to previous message
Eclipse UserFriend
Originally posted by: ckng.nrg.cs.usm.my

I think I know where to go from here.
I need to write a new Layout that calculate the position/constraints of each
Figure on the circle based on number of nodes (360 deg/number of nodes) and
use some ConnectionRouter to connect them..

Thanks

Regards,
CK Ng

--

"Randy Hudson" <none@us.ibm.com> wrote in message
news:cdr5eh$37l$1@eclipse.org...
Routers only affect connections, not nodes. You need a layout which places
nodes based on their connections. This could be done by writing your own
layout manager which takes constraints or something similar. You could set
constraints on each node indicating which other nodes it is attached to.
Or, you could just invent some new API for your layout which allows you to
push all of the information into it.

Once you place the nodes, connection could be router simply using chopbox
anchors or similar.

"CK Ng" <ckng@nrg.cs.usm.my> wrote in message
news:cdq22d$esc$1@eclipse.org...
> Hi,
>
> Anyone know if there is any layout that can place Figures in a
circular/oval
> fashion like depicted below, where o are the Figures (number denotes the
> layout sequence). Or have idea which existing layout can be
> duplicated/modified to get such functionality..
>
> o1
> |
> 4o--o--o2
> |
> o3
>
> o o5
> |/
> o--o--o
> /|\
> 7o o o6
>
> I'm thinking maybe can reuse some code from FanRouter, but I couldnt get
it
> to work properly.
>
> Thanks
>
> Regards,
> CK Ng
>
>
Previous Topic:Building a tree using GEF?
Next Topic:How to run the GEF redbook example
Goto Forum:
  


Current Time: Thu Jul 25 16:34:18 GMT 2024

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

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

Back to the top