Question on Connection Overlapping [message #207801] |
Mon, 23 January 2006 09:30 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03136 seconds