Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to center align the label name in gmfgraph?
how to center align the label name in gmfgraph? [message #985828] Fri, 16 November 2012 05:01 Go to next message
Iqbal Hossain is currently offline Iqbal Hossain
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
hello,
I think its simple but i cannot find it.
as you can see in the picture the label is somewhat left align. But i want to make it center align. Can anyone help me out?

index.php/fa/12358/0/
  • Attachment: 1.jpg
    (Size: 11.33KB, Downloaded 244 times)
Re: how to center align the label name in gmfgraph? [message #985853 is a reply to message #985828] Fri, 16 November 2012 07:14 Go to previous messageGo to next message
Andreas Muelder is currently offline Andreas Muelder
Messages: 71
Registered: July 2011
Member
Hi,

you could use a StackLayout for your Figure.

Regards,

Andreas
Re: how to center align the label name in gmfgraph? [message #986122 is a reply to message #985853] Sun, 18 November 2012 23:55 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal Hossain
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
i dont know whether i did it right but doesn't work Sad

any other solution plz???
Re: how to center align the label name in gmfgraph? [message #986164 is a reply to message #986122] Mon, 19 November 2012 04:23 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi Iqbal,

maybe you should be more specific what you tried so that peopla can answer..

Ralph
Re: how to center align the label name in gmfgraph? [message #986369 is a reply to message #986164] Tue, 20 November 2012 04:20 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal Hossain
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
in gmfgraph i have figure descriptor. i added flow layout and make major and minor alignment center.i hope that the label should come to center. but in diagram the label is not centered. am i doing it right??? I want to put the label in middle of the node.
may the the picture can help....

index.php/fa/12442/0/
  • Attachment: 1.jpg
    (Size: 76.00KB, Downloaded 225 times)
Re: how to center align the label name in gmfgraph? [message #986396 is a reply to message #986369] Tue, 20 November 2012 05:27 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

you could try to use a TableLayout and add TableLayoutInformation to the label. There you should set things like grab horizontal/vertical excess to true.

Ralph
Previous Topic:Performance: calculateEnabled called twice in refresh method of some DiagramAction
Next Topic:how to use OCL to set constrains?
Goto Forum:
  


Current Time: Tue Jul 29 02:45:19 EDT 2014

Powered by FUDForum. Page generated in 0.13602 seconds