Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to cener a label into a figure
How to cener a label into a figure [message #198091] Mon, 21 July 2008 14:09 Go to next message
Eclipse UserFriend
Originally posted by: PetkoSAP.gmail.com

Hi there,
I have a figure descriptor with a child element Ellipse and the ellipse
has a child element a label. I set up that the Ellipse appears as circle
and I would like to have the label being in the center of the circle. If I
add a flow layout and put the alignment to center I only get the lable
vertically centered but not horizontally. Could anybody help?
Greets, Petko
Re: How to cener a label into a figure [message #198109 is a reply to message #198091] Mon, 21 July 2008 15:25 Go to previous message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
Hi,

I think, you could use a stackLayout and the labelAlignement to
center it (try WrappingLabel if if doesn't work with a label).

Or, you could see in the TOPCASED project (http://www.topcased.org).
we have implemented a CenterLayout which works like the StackLayout but
the objects are centered and keep their optimal size.



Petko Ivanov a écrit :
> Hi there,
> I have a figure descriptor with a child element Ellipse and the ellipse
> has a child element a label. I set up that the Ellipse appears as circle
> and I would like to have the label being in the center of the circle. If
> I add a flow layout and put the alignment to center I only get the lable
> vertically centered but not horizontally. Could anybody help?
> Greets, Petko
>
Previous Topic:Label not centered
Next Topic:Blinking Effect for a ConnectionEditPart
Goto Forum:
  


Current Time: Fri Apr 26 16:20:00 GMT 2024

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

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

Back to the top