How can I use my AutomaticRouter? [message #148006] |
Mon, 27 August 2007 23:29  |
Eclipse User |
|
|
|
Dear all,
The only AutomaticRouter realized in gmf is FanRouter,but now I want
use another AutomaticRouter to give more functions such as when two line
are metches(even when their sources and ends are not the same), the
algorithom can also identified, and can give some nice solutions.
But currently I have a problem, I noticed that the defalut
connectionLayer registered is ConnectionLayerEx,when get ObliqueRouter
from the layer, it returns the FanRouter.
I don't know how can I register my ConnectionLayer, or whether if there
are other nice ways to achieve that goal. Please give me some
suggestions about this.
Thank you!
|
|
|
|
|
Re: How can I use my AutomaticRouter? [message #149442 is a reply to message #148122] |
Thu, 06 September 2007 11:44  |
Eclipse User |
|
|
|
Nemo,
Is this the same issue?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149861
- Cherie
nemo wrote:
> Thank you Vinay,
>
> The installRouter() method needs the support of the ConnectionLayer,
> which applied getXXXRouter() method. But the default ConnectionLayer is
> the ConnectionLayerEx, I have no idear about how to change it. I can
> override the methods in my own way, but I don't know how the new
> ConnectionLayerEx be used.
>
> Could any one give me some more help?
>
>
> Thanks,
> Nemo
>
>
>
>
>
>
>
>
> Vinay 写道:
>> Hi,
>>
>> Not sure but there is "installRouter" method available in
>> ConnectionEditPart. Is it possible to use this method for having
>> custom router ?
>>
>> Thanks,
>> Vinay
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04859 seconds