RelativeBendpoints Notation [message #170895] |
Thu, 31 January 2008 13:42 |
Eclipse User |
|
|
|
Originally posted by: raedler.inf.uni-konstanz.de
Hi,
The diagram/model xml describes the view of a diagram. A diagram can
contain edges and for those they can contain bendpoints. There is a
notation like:
<bendpoints xsi:type="notation:RelativeBendpoints"
xmi:id="_iTYCs86GEdyH2_oyoL8OSQ" points="[-20, 20, 140, -141]$[-155, 153,
5, -8]"/>
Does anybody know how this relative bendpoint notation works? Especially
the points attribute notation.
Thank You!
|
|
|
Re: RelativeBendpoints Notation [message #170911 is a reply to message #170895] |
Thu, 31 January 2008 15:17 |
Gilles Cannenterre Messages: 38 Registered: July 2009 |
Member |
|
|
Hello,
You may have a look into the ConnectionViewFactory class in the
createBendpoints() method to see how these things are created.
Each point is a RelativeBendPoint (relative to the source and target
nodes position).
This notation: points="[-20, 20, 140, -141]$[-155,153, 5, -8] means that
the edge is associated with a RelativeBendpoints object which contains a
list of 2 RelativeBendpoint objects.
For the RelativeBendpoint object [-20, 20, 140, -141] you have to read
that the point is located (X=-20, Y=20) if you take the source node
location as reference point and (X=140, Y=-141) if you take the target
node location as the reference point.
Hope that will help,
Best regards,
Gilles
Roman Raedle a écrit :
> Hi,
>
> The diagram/model xml describes the view of a diagram. A diagram can
> contain edges and for those they can contain bendpoints. There is a
> notation like:
>
> <bendpoints xsi:type="notation:RelativeBendpoints"
> xmi:id="_iTYCs86GEdyH2_oyoL8OSQ" points="[-20, 20, 140, -141]$[-155,
> 153, 5, -8]"/>
>
> Does anybody know how this relative bendpoint notation works? Especially
> the points attribute notation.
>
> Thank You!
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03613 seconds