Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Figure around other (externally) , borders, layout ..
Figure around other (externally) , borders, layout .. [message #901] Sun, 30 July 2006 03:51 Go to next message
Eclipse UserFriend
Hi all!

I'm trying to get something like that :


child _____________ child
[]-----| container |---[]
| | other
other | |---[]
[]-----|_____________|


I can easily get:
_____________
| container |
|child |
| [] child |
|________[]___|


I thought about using a biggest and invisible container rectangle but I
can't manage to sort out the layouts in order to get something good.

Have you got any advice in order to do that, or may be a sample project or
documentation to point me to ?

thanks
Re: Figure around other (externally) , borders, layout .. [message #1082 is a reply to message #901] Mon, 31 July 2006 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Hello!

Is there any constraint how far children may be located from the container?

Cédric Brun wrote:
> Hi all!
>
> I'm trying to get something like that :
>
>
> child _____________ child
> []-----| container |---[]
> | | other
> other | |---[]
> []-----|_____________|
>
>
> I can easily get:
> _____________
> | container |
> |child |
> | [] child |
> |________[]___|
>
>
> I thought about using a biggest and invisible container rectangle but I
> can't manage to sort out the layouts in order to get something good.
>
> Have you got any advice in order to do that, or may be a sample project or
> documentation to point me to ?
>
> thanks
Re: Figure around other (externally) , borders, layout .. [message #1267 is a reply to message #1082] Tue, 01 August 2006 03:17 Go to previous messageGo to next message
Eclipse UserFriend
Yes, it should stay not far from the container figure. Let's says in the
best case I would like to be able to fix this length.

Dmitry Stadnik wrote:

> Hello!
>
> Is there any constraint how far children may be located from the
> container?
>
> Cédric Brun wrote:
>> Hi all!
>>
>> I'm trying to get something like that :
>>
>>
>> child _____________ child
>> []-----| container |---[]
>> | | other
>> other | |---[]
>> []-----|_____________|
>>
>>
>> I can easily get:
>> _____________
>> | container |
>> |child |
>> | [] child |
>> |________[]___|
>>
>>
>> I thought about using a biggest and invisible container rectangle but I
>> can't manage to sort out the layouts in order to get something good.
>>
>> Have you got any advice in order to do that, or may be a sample project
>> or documentation to point me to ?
>>
>> thanks
Re: Figure around other (externally) , borders, layout .. [message #1289 is a reply to message #1267] Tue, 01 August 2006 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Hello!

I could suggest you two approaches:

1. Use diagram structure that differs from domain model structure as
discussed in "Semantical container != Graphical container"; you'll find
yourself hacking through the labyrinths of gmf code soon but in the end
you'll be able to get exactly what you need.

2. Define container figure with transparent border and use diagram
structure you say "I can easily get". Note that you should not use
draw2d Border since children can't be placed over it; possible solution
is to write custom figure that overrides paintFigure() method to paint
smaller rectangle (and optionally containsPoint() /
findDescendantAtExcluding() to make border transparent for mouse clicks).

Cédric Brun wrote:
> Yes, it should stay not far from the container figure. Let's says in the
> best case I would like to be able to fix this length.
>
> Dmitry Stadnik wrote:
>
>> Hello!
>>
>> Is there any constraint how far children may be located from the
>> container?
>>
>> Cédric Brun wrote:
>>> Hi all!
>>>
>>> I'm trying to get something like that :
>>>
>>>
>>> child _____________ child
>>> []-----| container |---[]
>>> | | other
>>> other | |---[]
>>> []-----|_____________|
>>>
>>>
>>> I can easily get:
>>> _____________
>>> | container |
>>> |child |
>>> | [] child |
>>> |________[]___|
>>>
>>>
>>> I thought about using a biggest and invisible container rectangle but I
>>> can't manage to sort out the layouts in order to get something good.
>>>
>>> Have you got any advice in order to do that, or may be a sample project
>>> or documentation to point me to ?
>>>
>>> thanks
>
Re: Figure around other (externally) , borders, layout .. [message #1327 is a reply to message #1289] Tue, 01 August 2006 07:51 Go to previous message
Eclipse UserFriend
Thank you for all these information, I'll try that :)

Cédric

Dmitry Stadnik wrote:

> Hello!
>
> I could suggest you two approaches:
>
> 1. Use diagram structure that differs from domain model structure as
> discussed in "Semantical container != Graphical container"; you'll find
> yourself hacking through the labyrinths of gmf code soon but in the end
> you'll be able to get exactly what you need.
>
> 2. Define container figure with transparent border and use diagram
> structure you say "I can easily get". Note that you should not use
> draw2d Border since children can't be placed over it; possible solution
> is to write custom figure that overrides paintFigure() method to paint
> smaller rectangle (and optionally containsPoint() /
> findDescendantAtExcluding() to make border transparent for mouse clicks).
>
> Cédric Brun wrote:
>> Yes, it should stay not far from the container figure. Let's says in the
>> best case I would like to be able to fix this length.
>>
>> Dmitry Stadnik wrote:
>>
>>> Hello!
>>>
>>> Is there any constraint how far children may be located from the
>>> container?
>>>
>>> Cédric Brun wrote:
>>>> Hi all!
>>>>
>>>> I'm trying to get something like that :
>>>>
>>>>
>>>> child _____________ child
>>>> []-----| container |---[]
>>>> | | other
>>>> other | |---[]
>>>> []-----|_____________|
>>>>
>>>>
>>>> I can easily get:
>>>> _____________
>>>> | container |
>>>> |child |
>>>> | [] child |
>>>> |________[]___|
>>>>
>>>>
>>>> I thought about using a biggest and invisible container rectangle but I
>>>> can't manage to sort out the layouts in order to get something good.
>>>>
>>>> Have you got any advice in order to do that, or may be a sample project
>>>> or documentation to point me to ?
>>>>
>>>> thanks
>>
Previous Topic:problem with synchronizing model change in different diagram
Next Topic:Stability of GMF Tooling models
Goto Forum:
  


Current Time: Thu May 22 08:22:20 EDT 2025

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

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

Back to the top