Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to join two nodes by a L shaped connection
How to join two nodes by a L shaped connection [message #211983] Fri, 17 March 2006 04:38 Go to next message
Eclipse UserFriend
Originally posted by: shruthi.cn.in.bosch.com

Hello everybody,
In GEF editor, i dont want to join two nodes by a straight line, i want to
join it by using for e.g. a L shaped line(connection)

Example :

node1
|
|
----------> node2

I dont want a dashed line, but a solid line. I may even want to join 2
nodes by using different shaped line. L shaped line, i just gave it as an
example.
Is this possible? How?
If it is not possible, then is it a good idea, to treat connection as a
node and extend it from AbstractGraphicalEditPart instead of
AbstractConnectionEditPart. So, now in createFigure function of class
extending AbstractGraphicalEditPart, i can draw the line how ever i want
to.

Thank you very much
Best Regards
Shruthi
Re: How to join two nodes by a L shaped connection [message #212181 is a reply to message #211983] Mon, 20 March 2006 01:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nate.snapp.altiris.com

I don't have a lot of experience with working with connections, but it
seems like draw2d may already have a way to do this with the
ManhattanConnectionRouter.
Re: How to join two nodes by a L shaped connection [message #212342 is a reply to message #211983] Wed, 22 March 2006 06:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rupesh_wakde.yahoo.com

hi shruthi
U can do one thing just implement a connection with bendpoint
policy and set the property for bendpoints.
Re: How to join two nodes by a L shaped connection [message #212347 is a reply to message #212181] Wed, 22 March 2006 06:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Yes, this is exactly what the ManhattanConnectionRouter does :)


"Nate Snapp" <nate.snapp@altiris.com> schrieb im Newsbeitrag
news:15b2044a0f8fcafc2da12bcf0c4bae3b$1@www.eclipse.org...
>I don't have a lot of experience with working with connections, but it
>seems like draw2d may already have a way to do this with the
>ManhattanConnectionRouter.
>
Re: How to join two nodes by a L shaped connection [message #212540 is a reply to message #211983] Sat, 25 March 2006 07:04 Go to previous message
Eclipse UserFriend
Originally posted by: g.bagga.zensar.com

hi,
i think you should see gef logic editior example for bendpoints
implementation,i studied the same to implement the connections the way you
want

regards
gaurav
Previous Topic:How to change the font of the label name in property view?
Next Topic:When should i create an edit part?
Goto Forum:
  


Current Time: Sun Dec 04 09:58:57 GMT 2022

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

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

Back to the top