Figure around other (externally) , borders, layout .. [message #901] |
Sun, 30 July 2006 03:51  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.09011 seconds