[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Centering the text in a label

Hello Anna,

This issue was already discussed here: http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/msg16168.html

You use the GridLayout on the Figure of the EditPart (the inner class inside of the EditPart). And the Label gets the GridLayoutData.

Best wishes
Julia


Anna S schrieb:
I have changed the look on my state-nodes from an ordinary rectangle to a rounded rectangle. This caused the label with the state name to be placed a bit outside of the figure, so that when I add a name to my state it is shown like in this picture:
http://farm4.static.flickr.com/3440/3265528805_dd9642471f_o.jpg
It might not be too easy to see, but the first letter of the name is partially placed outside of the figure. I don't like this, so I would like to center the text in the label (I have to assume that no state name is longer than the length of the figure). Is this possible? And where can I make this change?


Thanks,
Anna