Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Label positioned under RoundedRectangle?
Label positioned under RoundedRectangle? [message #207181] Fri, 26 September 2008 20:10 Go to next message
Florian  is currently offline Florian Friend
Messages: 16
Registered: July 2009
Junior Member
Hi,

i have a rounded rectangle figure (BPMN Task) and want to place the
naming Label under the figure. When the rectangle figure is moved the
label should also be moved and vice versa.

What is the best way to achieve this?

Any hints would be appreciated.

Greetings,
Florian
Re: Label positioned under RoundedRectangle? [message #207206 is a reply to message #207181] Mon, 29 September 2008 05:50 Go to previous message
Thomas Beyer is currently offline Thomas BeyerFriend
Messages: 47
Registered: July 2009
Member
Hi Florian,

create a Rectangle as "Outline" and put your RoundedRectangle and the Label
inside it.
You might wanna use BorderLayout for the "Outline"-Rectangle and
BorderLayoutData Beginning for the RoundedRectangle as well as
BorderLayoutData CENTER for the Label.

Set Outline to false and LineWidth to 0 for your Outline Rectangle.

Approach above gives you a sticky label to your RoundedFigure.

HTH & regards
Thomas

"Florian" <e64641@gmx.net> schrieb im Newsbeitrag
news:gbjfdd$54j$1@build.eclipse.org...
> Hi,
>
> i have a rounded rectangle figure (BPMN Task) and want to place the naming
> Label under the figure. When the rectangle figure is moved the label
> should also be moved and vice versa.
>
> What is the best way to achieve this?
>
> Any hints would be appreciated.
>
> Greetings,
> Florian
Previous Topic:fail in saving diagram file
Next Topic:Drag n Drop to Editor
Goto Forum:
  


Current Time: Wed Apr 24 15:59:38 GMT 2024

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

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

Back to the top