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 14:58 Go to next message
Eclipse User
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 04:49 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander Shatalin
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 09:06 Go to previous messageGo to next message
No real name is currently offline No real name
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 08:35 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
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: Wed Jul 23 09:58:22 EDT 2014

Powered by FUDForum. Page generated in 0.02136 seconds