Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Container layout problem
Container layout problem [message #242699] Mon, 05 May 2008 19:56 Go to next message
Eclipse UserFriend
Originally posted by: abhijit.aparadh.morganstanley.com

I am trying to solve a layout problem. I have a model with 2 different
types of nodes. say Node A and Node B. Node A can contain 0 or more nodes
(of type A or B). And this hierarchy can grow recursively.
I want to design something which will lay out the nodes one below the
other without any connection between the nodes with indentation when ever
a node of type A is encountered.
e.g.
|--------------|
|Node A |
|--------------|
| Node B |
| ------------ |
| |Node A | |
| |----------| |
| | Node B | |
| | Node B | |
| | ... | |
| ------------ |
| Node B |
| ... |
|--------------|

Node of type A has compartment which contain all its children.

The "Top Node" and "Child node" etc are NOT labels, but actual figures.

Is there any way to achieve this?
Also when I load a model from file, is there any way to show the
compartments of Node A collapsed by default?
Re: Container layout problem [message #242851 is a reply to message #242699] Sat, 10 May 2008 05:27 Go to previous message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
Hi,
Maybe a WrapNodeA is an optional. it could be processed by editpart context.

Regards,
Qinxian

Abhijit Aparadh 写道:
> I am trying to solve a layout problem. I have a model with 2 different
> types of nodes. say Node A and Node B. Node A can contain 0 or more
> nodes (of type A or B). And this hierarchy can grow recursively.
> I want to design something which will lay out the nodes one below the
> other without any connection between the nodes with indentation when
> ever a node of type A is encountered.
> e.g.
> |--------------|
> |Node A |
> |--------------|
> | Node B |
> | ------------ |
> | |Node A | |
> | |----------| |
> | | Node B | |
> | | Node B | |
> | | ... | |
> | ------------ |
> | Node B |
> | ... |
> |--------------|
>
> Node of type A has compartment which contain all its children.
>
> The "Top Node" and "Child node" etc are NOT labels, but actual figures.
>
> Is there any way to achieve this?
> Also when I load a model from file, is there any way to show the
> compartments of Node A collapsed by default?
>
Previous Topic:finding a figure off-screen
Next Topic:How to make a specific connection in GEF
Goto Forum:
  


Current Time: Fri Apr 26 23:46:59 GMT 2024

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

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

Back to the top