Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Routing Style ..
Routing Style .. [message #244999] Tue, 19 August 2008 15:47 Go to next message
Eclipse UserFriend
Originally posted by: annamalai.ancitconsulting.com

Dear all

i would like to perform something like the Routing Style available in the
GMF Editor ... Rectilinear or Oblique etc.

How do i do it in GEF Editor ? Any help would be appreciated.

Regards
Malai
Re: Routing Style .. [message #245048 is a reply to message #244999] Thu, 21 August 2008 04:03 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

GMF ObliqueRouter is derived from BendpointConnectionRouter. So you should
use it or your own extension of it with a GEF editor
GMF RectilinearRouter corresponds to ManhattanConnectionRouter.

Cheers,
Alex
Re: Routing Style .. [message #245079 is a reply to message #245048] Fri, 22 August 2008 06:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annamalai.ancitconsulting.com

Dear Alex

Thanks for your reply .. i checkedout the code for ObliqueRouter from GMF
internal draw2d ... And added to my package ...

I tried to use it in Shapes Editor by commenting the
ShortestPathRouterConnection and also applying the routing stuff in the
ConnectionEditPart ...

And i dont see any output change ... can you please explain ... where do i
need to change to get the routing algo working.

Regards
malai

"Alex Boyko" <aboyko@ca.ibm.com> wrote in message
news:e8cd639b6a27bb6ca6aa82647bcdd564$1@www.eclipse.org...
> Hi,
>
> GMF ObliqueRouter is derived from BendpointConnectionRouter. So you should
> use it or your own extension of it with a GEF editor
> GMF RectilinearRouter corresponds to ManhattanConnectionRouter.
>
> Cheers,
> Alex
>
Re: Routing Style .. [message #245084 is a reply to message #245079] Fri, 22 August 2008 03:26 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
GMF ObliqueRouter and GEF BendpointConnectionRouter are very similar in
terms of the output connection look.
Differences in GMF ObliqueRouter are:
1) It handles routing around obstruction for a connection
2) Routes separately connection where source == target and where source
and target intersect
3) Ignores bendpoints inside source and target shapes

So, what are your expectations of GMF's ObliqueRouter in GEF? Perhaps, the
behavior you're looking for can be implemented elsewhere... on connection
anchors, or using a different bendpoint constraints...?

Cheers,
Alex
Re: Routing Style .. [message #245087 is a reply to message #245084] Fri, 22 August 2008 16:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annamalai.ancitconsulting.com

Dear Alex

Thanks for your reply once again ... Ok my expected output is ... when two
lines cross each other one of them needs to jump on the other line ... like
in GMF

If could be a Circular Jump or a Rectangular Jump ... So hope ObliqueRouter
helps me do this ... :)

Ok i get this .. ObliqueRouter helps in connecting the source to itself
again ... :) Hope this understanding is correct now ...

Me really confused with so many classes in GEF but the Framework is
amazingly good.

Thank you very much .. awaiting your reply.

Regards
Malai


"Alex Boyko" <aboyko@ca.ibm.com> wrote in message
news:f3e7a371d24809084b796796ba020728$1@www.eclipse.org...
> GMF ObliqueRouter and GEF BendpointConnectionRouter are very similar in
> terms of the output connection look.
> Differences in GMF ObliqueRouter are:
> 1) It handles routing around obstruction for a connection
> 2) Routes separately connection where source == target and where source
> and target intersect
> 3) Ignores bendpoints inside source and target shapes
>
> So, what are your expectations of GMF's ObliqueRouter in GEF? Perhaps, the
> behavior you're looking for can be implemented elsewhere... on connection
> anchors, or using a different bendpoint constraints...?
>
> Cheers,
> Alex
>
Re: Routing Style .. [message #245098 is a reply to message #245087] Fri, 22 August 2008 03:56 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Those are called "Jump Links" in GMF. Jump Link is a concept defined on
PolylineConnectionEx class in GMF, not on the router.

Cheers,
Alex
Re: Routing Style .. [message #245118 is a reply to message #245098] Sat, 23 August 2008 05:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annamalai.ancitconsulting.com

Dear Alex

Thanks for your patiently reply .. Now can i get some pointer on how to use
or implement these Jump Links in GEF ..

This is my requirement now .. i need to be able to jump the intersection of
links ...

Hoping to get some reply ..

Regards
Malai
"Alex Boyko" <aboyko@ca.ibm.com> wrote in message
news:7dc2b40867f62280c31c4ec8891f9d75$1@www.eclipse.org...
> Hi,
>
> Those are called "Jump Links" in GMF. Jump Link is a concept defined on
> PolylineConnectionEx class in GMF, not on the router.
>
> Cheers,
> Alex
>
Re: Routing Style .. [message #246371 is a reply to message #245118] Wed, 26 November 2008 14:05 Go to previous message
Niranjan Babu .H.S is currently offline Niranjan Babu .H.SFriend
Messages: 17
Registered: July 2009
Junior Member
Hi Malai,

Jump link in GEF can be achived by using PolylineConnectionEx
class from GMF org.eclipse.gmf.runtime.draw2d.ui plugin.

Regards,
Niranjan Babu
Previous Topic:same filename for model and diagram
Next Topic:Problems with Labels (DirectEditRequest)
Goto Forum:
  


Current Time: Thu Apr 19 12:10:41 GMT 2018

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

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