Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to draw the edge using the relative points and anchor information available in the .notation (How to draw the edge using the relative points and anchor information available in the .notation file.)
icon5.gif  How to draw the edge using the relative points and anchor information available in the .notation [message #1075312] Mon, 29 July 2013 08:10
gulshan kumar is currently offline gulshan kumarFriend
Messages: 1
Registered: July 2013
Junior Member
How to draw the edge using the relative points and anchor information available in the .notation file ?

if my source port is at the location (x1,y1) and target port is at the location (x2,y2), how to draw the edge between them using the relative bendpoint and anchor information ?

Basically , how to calculate the list of lines (required to draw the edge) to draw ?

For example:
 <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_jlXcEndlEeK9gIAa9s5AVQ" points="[-4, 0, 774, -107]$[-817, 0, -39, -107]$[-817, 107, -39, 0]$[-798, 107, -20, 0]"/>
    <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_p7G2IHdlEeK9gIAa9s5AVQ" id="(0.2,0.4)"/>
    <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_p7IEQHdlEeK9gIAa9s5AVQ" id="(1.0,0.5)"/>


can anybody explain it in a generalized manner ?
Previous Topic:Editor hasn't "Connection Creation Assistants" in MultiPageEditor
Next Topic:Making a Node not resizable
Goto Forum:
  


Current Time: Tue Sep 24 04:50:53 GMT 2024

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

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

Back to the top