|
|
|
Re: Label not centered [message #196948 is a reply to message #196884] |
Mon, 14 July 2008 14:35 |
Eclipse User |
|
|
|
Originally posted by: nospam.nospam.com
I noticed the same problem after switching to the latest GMF/GEF/Eclipse.
Some labels are not centered when they were before.
I haven't tried anything yet. I was hoping some changes in .gmfgraph would
help if not I will try to modify the code.
|
|
|
Re: Label not centered [message #196963 is a reply to message #196948] |
Mon, 14 July 2008 15:38 |
Eclipse User |
|
|
|
Originally posted by: me.urszeidler.de
W.F. wrote:
> I noticed the same problem after switching to the latest GMF/GEF/Eclipse.
> Some labels are not centered when they were before.
> I haven't tried anything yet. I was hoping some changes in .gmfgraph
> would help if not I will try to modify the code.
>
You can set this in the graph configuration as a facet on the label,
just as the example shows.
<labels
name="Callname"
figure="CallFigure"
elementIcon="false"
accessor="//@figures.0/@descriptors.23/@accessors.0">
<facets
xsi:type="gmfgraph:GeneralFacet"
identifier="Alignment"
data="PositionConstants.CENTER"/>
</labels>
Or by code :
fFigureCallnameFigure.setAlignment(PositionConstants.CENTER) ;
greetings, urs.
|
|
|
|
Re: Label not centered [message #197464 is a reply to message #196963] |
Wed, 16 July 2008 14:55 |
Eclipse User |
|
|
|
Originally posted by: nospam.nospam.com
The change in code does work but the General Facet doesn't for me. There
is no difference in the generated code, the General Facet is ignored.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03924 seconds