Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Connection with Plygons(Not able to connect with Polygon points using Manhattn)
Connection with Plygons [message #1440795] Wed, 08 October 2014 22:04 Go to next message
Anil tanneru is currently offline Anil tanneruFriend
Messages: 21
Registered: March 2014
Junior Member
Hi,

I am using Manhattan Connection to connect between two Shapes. When I am trying to create connection with Polygon, not able to connect at Polygon points. How to add my connection only at Polygon points.

I am using gaService.createPolyLine(gaContainer) for polyline in Connection
Re: Connection with Plygons [message #1441189 is a reply to message #1440795] Thu, 09 October 2014 11:22 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Anil,

nut sure if I got that question ...

As I understood you want to have your connections start and end only at
polygon points of your shapes. You can achieve that by defining
BoxRelativeAnchors or FixPointAnchors for your shape that are located at the
same places as the polygon points. On creation of the connection you change
the anchor passed in the context to one of these anchors.

By default shapes get a ChopboxAnchor that is located in the middle of the
shape, so all connections will point there (rendering is clipped at the edge
of the shape).

See
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fresources%2Fdocu%2Fgfw%2Fanchors.htm&cp=27_1_3_8_1
for details on Anchors.

Michael
Previous Topic:Graphiti with tycho
Next Topic:Text alignment issue in Text inside a Rectangle
Goto Forum:
  


Current Time: Mon Sep 23 11:08:39 GMT 2024

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

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

Back to the top