Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to use ShortestPathConnectionRouter
How to use ShortestPathConnectionRouter [message #179427] Wed, 27 April 2005 14:30 Go to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
Is there a tutorial that explains why ShortestPathConnectionRouter is
different from the other routers? When I have tried to use it I end up
in an infinite loop in the validate method. Does it require something
more sophisticated than simply creating a bunch of figures and
connections and adding them to a Canvas?

I asked this question once before and got nothing. Silence.

Jim Adams
Re: How to use ShortestPathConnectionRouter [message #179451 is a reply to message #179427] Wed, 27 April 2005 15:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The Logic Example demonstrates this router. If the entire team of two people
(one of which is now on vacation) has not had time to address bug 92637, you
could consider adding more information or looking at the example for
differences.

I've looked at your snippet (we would prefer snippets which compile). You
are adding the connections to the figure containing the obstacle figures to
be avoided by the router. So the connections would be trying to avoid
themselves, which is impossible. The router is desiged for routing
connections on a separate layer outside of the obstacle container.

"Jim Adams" <jim.adams@sas.com> wrote in message
news:d4o7s8$38m$1@news.eclipse.org...
> Is there a tutorial that explains why ShortestPathConnectionRouter is
> different from the other routers? When I have tried to use it I end up in
> an infinite loop in the validate method. Does it require something more
> sophisticated than simply creating a bunch of figures and connections and
> adding them to a Canvas?
>
> I asked this question once before and got nothing. Silence.
>
> Jim Adams
Re: How to use ShortestPathConnectionRouter [message #179459 is a reply to message #179451] Wed, 27 April 2005 15:30 Go to previous message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
Ok. I'll try layers. Maybe the javadoc for the router could say
something about this?

Randy Hudson wrote:
> The Logic Example demonstrates this router. If the entire team of two people
> (one of which is now on vacation) has not had time to address bug 92637, you
> could consider adding more information or looking at the example for
> differences.
>
> I've looked at your snippet (we would prefer snippets which compile). You
> are adding the connections to the figure containing the obstacle figures to
> be avoided by the router. So the connections would be trying to avoid
> themselves, which is impossible. The router is desiged for routing
> connections on a separate layer outside of the obstacle container.
>
> "Jim Adams" <jim.adams@sas.com> wrote in message
> news:d4o7s8$38m$1@news.eclipse.org...
>
>>Is there a tutorial that explains why ShortestPathConnectionRouter is
>>different from the other routers? When I have tried to use it I end up in
>>an infinite loop in the validate method. Does it require something more
>>sophisticated than simply creating a bunch of figures and connections and
>>adding them to a Canvas?
>>
>>I asked this question once before and got nothing. Silence.
>>
>>Jim Adams
>
>
>
Previous Topic:Children of Subgraphs not visible after CompoundDirectedGraphLayout
Next Topic:canExecute and feedback by MessageBox
Goto Forum:
  


Current Time: Fri Apr 19 07:43:51 GMT 2024

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

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

Back to the top