how to use FanRouter/ShortestPathConnectionRouter? [message #226228] |
Wed, 08 November 2006 09:33 |
Eclipse User |
|
|
|
Originally posted by: yabing.crimsonlogic.com
Hi,
anyone can give me an simple example on how to use the
FanRouter/ShortestPathConnectionRouter? I cannot find any tutorial or
articles touching on these classes.
what I need to implement is when I drag connections to connect the
figures, I want them to be routed automactially with proper bendpoints and
with as few collisions as possible. not sure whether I can just use the
two classes to fulfill my purpose or not. if not, to what extent do I need
to implement on my own instead of just using these classes? thanks.
|
|
|
Re: how to use FanRouter/ShortestPathConnectionRouter? [message #226296 is a reply to message #226228] |
Thu, 09 November 2006 00:12 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
In the logic example, click on the diagram. Then in the properties view,
change the router type to Shortest Path. That uses the ShortestPath + Fan
router. Look at the code to see how its done.
"Chen Yabing" <yabing@crimsonlogic.com> wrote in message
news:43d44e7cda8319d88f105d7379416ad7$1@www.eclipse.org...
> Hi,
>
> anyone can give me an simple example on how to use the
> FanRouter/ShortestPathConnectionRouter? I cannot find any tutorial or
> articles touching on these classes.
>
> what I need to implement is when I drag connections to connect the
> figures, I want them to be routed automactially with proper bendpoints and
> with as few collisions as possible. not sure whether I can just use the
> two classes to fulfill my purpose or not. if not, to what extent do I need
> to implement on my own instead of just using these classes? thanks.
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04355 seconds