Skip to main content


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 10:01 Go to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
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 595 times)
Re: how to center align the label name in gmfgraph? [message #985853 is a reply to message #985828] Fri, 16 November 2012 12:14 Go to previous messageGo to next message
Andreas Muelder is currently offline Andreas MuelderFriend
Messages: 73
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] Mon, 19 November 2012 04:55 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
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 09:23 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
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 09:20 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
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 606 times)
Re: how to center align the label name in gmfgraph? [message #986396 is a reply to message #986369] Tue, 20 November 2012 10:27 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
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: Thu Mar 28 19:48:36 GMT 2024

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

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

Back to the top