Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » centered labels in ellipse figure
centered labels in ellipse figure [message #202953] Thu, 21 August 2008 18:58 Go to next message
Eclipse UserFriend
Originally posted by: joachim9000.gmx.net

Hello,
in my ellipse figure the labels aren't centered anymore like they've been
before GMF 2.1. How can i center them ? Is it possible inside the mapping
?
regards
Re: centered labels in ellipse figure [message #203027 is a reply to message #202953] Fri, 22 August 2008 08:49 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello joachim,

Try using different layout/layout constraints in .gmfgraph model (description
of diagram figures)

-----------------
Alex Shatalin
Re: centered labels in ellipse figure [message #665819 is a reply to message #202953] Sat, 16 April 2011 13:06 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: April 2011
Junior Member
Hi,

After a day of research, I finally found a way to do that! If you want to get your label in the middle of a shape, add a children 'Grid Layout' to your shape, and a children 'grid layout data' to you label, with both 'grab excess place' turn on true, and both alignment on 'center'.

Jean
Re: centered labels in ellipse figure [message #666189 is a reply to message #665819] Tue, 19 April 2011 12:35 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

you should also consider this layoout: http://code.google.com/p/gmftools/wiki/CustomFiguresAndLayou ts

Ralph
Previous Topic:creating editors with gmf, nothing is drawn in the diagram
Next Topic:Add a label to an edge during a refresh?
Goto Forum:
  


Current Time: Fri Nov 15 00:41:59 GMT 2024

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

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

Back to the top