Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Label positioned under RoundedRectangle?
Label positioned under RoundedRectangle? [message #207181] Fri, 26 September 2008 16:10 Go to next message
Eclipse UserFriend
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 01:50 Go to previous message
Eclipse UserFriend
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: Mon Jul 21 23:51:55 EDT 2025

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

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

Back to the top