Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » fixed width figure
fixed width figure [message #230496] Fri, 15 May 2009 15: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 15:41 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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 16: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 09: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 10:11 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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: Fri Apr 19 21:39:50 GMT 2024

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

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

Back to the top