Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Anchor Points
Anchor Points [message #174839] Thu, 28 February 2008 10:07 Go to next message
Eclipse UserFriend
How can I control where, around the bounds of a rounded rectangle (or
other shape), connection points are placed?

My goal is to avoid having overlapping connection lines in and out from
nodes.

Thanks in advance,
Johan
Re: Anchor Points [message #174946 is a reply to message #174839] Fri, 29 February 2008 05:18 Go to previous messageGo to next message
Eclipse UserFriend
Nobody ever had this problem with rectilinear PolyConnectionEx lines?

Johan Wannheden wrote:
> How can I control where, around the bounds of a rounded rectangle (or
> other shape), connection points are placed?
>
> My goal is to avoid having overlapping connection lines in and out from
> nodes.
>
> Thanks in advance,
> Johan
Re: Anchor Points [message #175042 is a reply to message #174839] Sat, 01 March 2008 13:47 Go to previous message
Eclipse UserFriend
Originally posted by: surayya.daimi.au.dk

Johan Wannheden wrote:
> How can I control where, around the bounds of a rounded rectangle (or
> other shape), connection points are placed?
>
> My goal is to avoid having overlapping connection lines in and out from
> nodes.
>
> Thanks in advance,
> Johan

Hi you should in the EditPart that is supposed to be connected to
another EditPart add two functions

public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart
arg0) the same for getTargetConnectionAnchor

There you should return a ConnectionAnchor that could be for example
ChopboxAnchor this algorithm makes connection points around the node in
the middle of each side.
Best Regards Surayya
Previous Topic:How to know which Tool created my node
Next Topic:Connection
Goto Forum:
  


Current Time: Thu Jul 17 00:36:18 EDT 2025

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

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

Back to the top