Overlap Compartment Figure [message #176776] |
Wed, 12 March 2008 10:22 |
Eclipse User |
|
|
|
Originally posted by: taggartboy.hotmail.com
Hi,
does anyone know how i can make a node appear outside the bounds of it's
parent compartment but still be contained within the compartment?
|
|
|
|
Re: Overlap Compartment Figure [message #177021 is a reply to message #176784] |
Thu, 13 March 2008 09:18 |
Eclipse User |
|
|
|
Originally posted by: taggartboy.hotmail.com
Thanks for your reply,
I tried this but it still seems to place the shape inside the parents
bounds which grow to contain the node.
What am I really trying to achieve is this:
| |
| Node A | Node B
| |
| |
Node A is in a compartment of it's parent and Node B is a child of Node A
but needs to be shown outside of Node A's parent. If i could find some
way of overlapping part of the Node A shape outside it's parent this would
be ideal, but I am stuck because when my layout manager places Node A in
it's parent compartment, the bounds of the parent increase.
Any ideas on this would be a great help,
Thanks
Peter.
|
|
|
|
Re: Overlap Compartment Figure [message #177214 is a reply to message #177021] |
Thu, 13 March 2008 19:03 |
Cherie Revells Messages: 299 Registered: July 2009 |
Senior Member |
|
|
Peter,
From the GEF point of view, it is very tricky to have a child figure
drawn outside the bounds of its parent figure. In fact, GEF doesn't
really allow this. Is your Node B figure a child of the Node A figure?
It is easy to draw Node B anywhere if you place it on another layer and
use a locator to set the bounds of the figure instead of the layout
manager of the compartment. Decorations work in this way.
In GMF, we do allow border items to be drawn outside their container
figures if you wanted to look into how this is done, but I will warn you
that it isn't the prettiest solution.
Regards,
Cherie
Peter Taggart wrote:
> Thanks for your reply,
>
> I tried this but it still seems to place the shape inside the parents
> bounds which grow to contain the node.
>
> What am I really trying to achieve is this:
>
> | |
> | Node A | Node B
> | | | |
>
>
> Node A is in a compartment of it's parent and Node B is a child of Node
> A but needs to be shown outside of Node A's parent. If i could find
> some way of overlapping part of the Node A shape outside it's parent
> this would be ideal, but I am stuck because when my layout manager
> places Node A in it's parent compartment, the bounds of the parent
> increase.
>
> Any ideas on this would be a great help,
> Thanks
> Peter.
>
|
|
|
Powered by
FUDForum. Page generated in 0.08786 seconds