Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Question on Connection Overlapping
Question on Connection Overlapping [message #207801] Mon, 23 January 2006 09:30 Go to next message
Eclipse UserFriend
Originally posted by: vinusemail.gmail.com

Hi,

I have more that one connections from same source and target. But when
I create a second connection , it get overlapped on the first. How can I
remove the overlapping to show the two connections.

Thanks
Vinu Varghese
Re: Question on Connection Overlapping [message #207808 is a reply to message #207801] Mon, 23 January 2006 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Use a fanrouter as your primary router.
AutomaticRouter router = new FanRouter();
router.setNextRouter(new YourFavoriteRouter());

Regards, Ingo





"Vinu Varghese" <vinusemail@gmail.com> wrote in message
news:dr2800$am0$1@utils.eclipse.org...
> Hi,
>
> I have more that one connections from same source and target. But when
> I create a second connection , it get overlapped on the first. How can I
> remove the overlapping to show the two connections.
>
> Thanks
> Vinu Varghese
Re: Question on Connection Overlapping [message #207815 is a reply to message #207808] Mon, 23 January 2006 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vinusemail.gmail.com

Hi Ingo,

I tried it , but it didn't work :-(
The code is here:
PolylineConnection conn = (PolylineConnection) super.createFigure();
AutomaticRouter router = new FanRouter();
router.setNextRouter(new BendpointConnectionRouter());
conn.setConnectionRouter(router);

Thanks
Vinu Varghese


Ingo Koch wrote:
> Use a fanrouter as your primary router.
> AutomaticRouter router = new FanRouter();
> router.setNextRouter(new YourFavoriteRouter());
>
> Regards, Ingo
>
>
>
>
>
> "Vinu Varghese" <vinusemail@gmail.com> wrote in message
> news:dr2800$am0$1@utils.eclipse.org...
>
>>Hi,
>>
>> I have more that one connections from same source and target. But when
>>I create a second connection , it get overlapped on the first. How can I
>>remove the overlapping to show the two connections.
>>
>>Thanks
>>Vinu Varghese
>
>
>
Re: Question on Connection Overlapping [message #207847 is a reply to message #207808] Mon, 23 January 2006 11:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vinusemail.gmail.com

Hi Ingo
I tried this code:
ScalableFreeformRootEditPart rootEditPart = new
ScalableFreeformRootEditPart();
ConnectionLayer connectionLayer =
(ConnectionLayer)rootEditPart.getLayer(rootEditPart.CONNECTI ON_LAYER);
FanRouter router = new FanRouter();
router.setSeparation(20);
router.setNextRouter(new BendpointConnectionRouter());
connectionLayer.setConnectionRouter(router);

viewer.setRootEditPart(rootEditPart);

While initializing the editor. Is there any error in this ?.
But now also the connections appear overlapped.

Can u please give me an example for this .

Thanks
Vinu Varghese

Ingo Koch wrote:
> Use a fanrouter as your primary router.
> AutomaticRouter router = new FanRouter();
> router.setNextRouter(new YourFavoriteRouter());
>
> Regards, Ingo
>
>
>
>
>
> "Vinu Varghese" <vinusemail@gmail.com> wrote in message
> news:dr2800$am0$1@utils.eclipse.org...
>
>>Hi,
>>
>> I have more that one connections from same source and target. But when
>>I create a second connection , it get overlapped on the first. How can I
>>remove the overlapping to show the two connections.
>>
>>Thanks
>>Vinu Varghese
>
>
>
Re: Question on Connection Overlapping - Got it [message #207871 is a reply to message #207801] Mon, 23 January 2006 17:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vinusemail.gmail.com

Hi,
I got it.

http://dev.eclipse.org/newslists/news.eclipse.tools.gef/msg1 0133.html

Thank you Ingo

- regards
Vinu Varghese

Vinu Varghese wrote:
> Hi,
>
> I have more that one connections from same source and target. But when
> I create a second connection , it get overlapped on the first. How can I
> remove the overlapping to show the two connections.
>
> Thanks
> Vinu Varghese
Re: Question on Connection Overlapping - Got it [message #207909 is a reply to message #207871] Tue, 24 January 2006 09:36 Go to previous message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

??? Mhm.... I thought, you could "override" the connectionlayer
Previous Topic:active / disactive retargetable action?
Next Topic:Program Swimlanes
Goto Forum:
  


Current Time: Wed Jan 22 16:01:17 GMT 2025

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

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

Back to the top