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 04:10
gulshan kumar is currently offline gulshan kumar
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:Making a Node not resizable
Next Topic:Unresolved dependency on org.eclipse.gmf.tooling.runtime
Goto Forum:
  


Current Time: Sun Apr 20 09:22:22 EDT 2014

Powered by FUDForum. Page generated in 0.01503 seconds