Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to use FanRouter/ShortestPathConnectionRouter?
how to use FanRouter/ShortestPathConnectionRouter? [message #226228] Wed, 08 November 2006 09:33 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
>
Re: how to use FanRouter/ShortestPathConnectionRouter? [message #226302 is a reply to message #226296] Thu, 09 November 2006 03:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yabing.crimsonlogic.com

thanks for your answer.
could you tell me how to get this example as a jar file? I tried to search
it on the net, but can only find the cvs on the dev.eclipse.org.
Re: how to use FanRouter/ShortestPathConnectionRouter? [message #226317 is a reply to message #226302] Thu, 09 November 2006 10:58 Go to previous message
Thomas Porcham is currently offline Thomas PorchamFriend
Messages: 14
Registered: July 2009
Junior Member
you can download the gef sdk + examples or just the examples from
http://download.eclipse.org/tools/gef/downloads/drops/R-3.2. 1-200609211617/index.php
The logic example is included in the examples.
Unzip the examples into your plugins folder.
Import the example plugin into your workspace to browse the source code.

Regards,

Thomas
Previous Topic:Order of realization of Connection
Next Topic:TreeViewer with lazy loading
Goto Forum:
  


Current Time: Thu Mar 28 16:35:36 GMT 2024

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

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

Back to the top