Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » RelativeBendpoints Notation
RelativeBendpoints Notation [message #170895] Thu, 31 January 2008 13:42 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Gilles Cannenterre is currently offline Gilles CannenterreFriend
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!
>
>
>
Re: RelativeBendpoints Notation [message #171272 is a reply to message #170911] Sat, 02 February 2008 18:26 Go to previous message
Eclipse UserFriend
Originally posted by: raedler.inf.uni-konstanz.de

So bendpoints are not identifing the connection output and input points,
right?

How is the Connection binding exactly working?
Previous Topic:Arrage Element always in the (horizontal) center of a compartment
Next Topic:How to customize enablement in popups
Goto Forum:
  


Current Time: Tue Sep 24 12:21:42 GMT 2024

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

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

Back to the top