Positioning a Label at the end (beginning) of a connection figure ... [message #53380] |
Fri, 22 September 2006 09:45 |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
Hi there,
i want to add a Label at the end of a (decorated) connection which
should represent the target (source) cardinality of the connection. What
could i add to my PolyLine Connection in my .gmfgraph file?
One thing i tried was a BorderLayout as child from the Connection and a
FigureRef also as child. Then the FigureRef gets the BorderLayoutData
(END). But this didn't work out:
<figures xsi:type="gmfgraph:PolylineConnection"
referencingElements="CompositionLink"
name="SolidLineFilledDiamond" targetDecoration="FilledDiamond">
<layout xsi:type="gmfgraph:BorderLayout"/>
<children xsi:type="gmfgraph:FigureRef"
figure="EjbRelationTargetCardinalityFigure">
<layoutData xsi:type="gmfgraph:BorderLayoutData"
alignment="END"/>
</children>
</figures>
Is there a build in possibility to solve this? Or must i implement an
own Layout?
regards
Jens Krause
|
|
|
Re: Positioning a Label at the end (beginning) of a connection figure ... [message #53463 is a reply to message #53380] |
Fri, 22 September 2006 10:34 |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
In gmfgraph model add AlignmentFacet to the DiagramLabel. In this facet
you may select appropriate label alignment relative to the link.
Jens Krause wrote:
> Hi there,
>
> i want to add a Label at the end of a (decorated) connection which
> should represent the target (source) cardinality of the connection. What
> could i add to my PolyLine Connection in my .gmfgraph file?
>
> One thing i tried was a BorderLayout as child from the Connection and a
> FigureRef also as child. Then the FigureRef gets the BorderLayoutData
> (END). But this didn't work out:
>
> <figures xsi:type="gmfgraph:PolylineConnection"
> referencingElements="CompositionLink" name="SolidLineFilledDiamond"
> targetDecoration="FilledDiamond">
> <layout xsi:type="gmfgraph:BorderLayout"/>
> <children xsi:type="gmfgraph:FigureRef"
> figure="EjbRelationTargetCardinalityFigure">
> <layoutData xsi:type="gmfgraph:BorderLayoutData" alignment="END"/>
> </children>
> </figures>
>
> Is there a build in possibility to solve this? Or must i implement an
> own Layout?
>
> regards
> Jens Krause
|
|
|
Re: Positioning a Label at the end (beginning) of a connection figure ... [message #53543 is a reply to message #53463] |
Fri, 22 September 2006 11:03 |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
Dmitry Stadnik wrote:
> In gmfgraph model add AlignmentFacet to the DiagramLabel. In this facet
> you may select appropriate label alignment relative to the link.
Thanks a lot, that is a good step in the right direction :).
But the result is not quite satisfying me ... Could i influence the
position where at the beginning or end of the connection appears?
Perhaps with a LocationPoint or so?
Jens K.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02938 seconds