Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » fixed width figure
fixed width figure [message #230496] Fri, 15 May 2009 11:06 Go to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Hi,

I would like to have a figure like the one shown below.

-------------------------------------
| | Label | Label | |
-------------------------------------

The whole figure has a fixed width and a variable height. The first
column is a rectangle of fixed width and the height should be the same
as the height of the whole figure. I somehow do not achieve that the
height of the rectangle in the first column has the same height as the
whole figure.

Any solutions?

Luciano
Re: fixed width figure [message #230530 is a reply to message #230496] Fri, 15 May 2009 11:41 Go to previous messageGo to next message
Eclipse UserFriend
Hello Luzi,

You have to specify proper layout/layout data for parent/child rectangle.
Can you please specify wich layout/layoutdata did you use?

-----------------
Alex Shatalin
Re: fixed width figure [message #230555 is a reply to message #230530] Fri, 15 May 2009 12:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

I used a GridLayout on the outer figure with different GridData set on
the children.

Luzi

Alex Shatalin wrote:
> Hello Luzi,
>
> You have to specify proper layout/layout data for parent/child
> rectangle. Can you please specify wich layout/layoutdata did you use?
>
> -----------------
> Alex Shatalin
>
>
Re: fixed width figure [message #230620 is a reply to message #230555] Mon, 18 May 2009 05:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

I tried to use some other layouts and also integrate some "invisible"
figures for layout purposes, but could not get the desired result. Are
there any tips and tricks such as when to use an "invisible" figure etc.?

thanks again
Luzi

Luzi Anderegg wrote:
> I used a GridLayout on the outer figure with different GridData set on
> the children.
>
> Luzi
>
> Alex Shatalin wrote:
>> Hello Luzi,
>>
>> You have to specify proper layout/layout data for parent/child
>> rectangle. Can you please specify wich layout/layoutdata did you use?
>>
>> -----------------
>> Alex Shatalin
>>
>>
Re: fixed width figure [message #230636 is a reply to message #230620] Mon, 18 May 2009 06:11 Go to previous message
Eclipse UserFriend
Hello Luzi,

> figures for layout purposes, but could not get the desired result. Are
> there any tips and tricks such as when to use an "invisible" figure
> etc.?
Well, do now know about any. You have to just use proper Layout/LayoutData.
In case of grid layout try setting verticalAlignment -> FILL, grabExcessVerticalSpace
-> true.

-----------------
Alex Shatalin
Previous Topic:Constraint for mapping two GMF elements to a singe Domain object
Next Topic:is it possible to have nested svg nodes?
Goto Forum:
  


Current Time: Tue Jun 24 05:08:06 EDT 2025

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

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

Back to the top