Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Anchor Points
Anchor Points [message #174839] Thu, 28 February 2008 15:07 Go to next message
Johan Wannheden is currently offline Johan WannhedenFriend
Messages: 40
Registered: July 2009
Member
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 10:18 Go to previous messageGo to next message
Johan Wannheden is currently offline Johan WannhedenFriend
Messages: 40
Registered: July 2009
Member
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 18: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: Mon Sep 23 03:15:02 GMT 2024

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

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

Back to the top