Skip to main content



      Home
Home » Eclipse Projects » GEF » ManhattanConnectionRouter revisited
ManhattanConnectionRouter revisited [message #8422] Thu, 06 June 2002 12:40 Go to next message
Eclipse UserFriend
OK, I guess I'm just too dumb (lazy?) to see through the obtuse hierarchy of
classes in the logic demo - I just can't figure out how to implement a
ManhattanConnectionRouter. Can someone please explain to this simpleton
(i.e. me) how to do this? Thanks in advance...

Bob
Re: ManhattanConnectionRouter revisited [message #8451 is a reply to message #8422] Thu, 06 June 2002 14:17 Go to previous messageGo to next message
Eclipse UserFriend
I'm not really sure what you're having trouble with. Could you be more
specific?

Eric

"Bob Brodt" <rbrodt@hotmail.com> wrote in message
news:ado29e$gbj$1@rogue.oti.com...
> OK, I guess I'm just too dumb (lazy?) to see through the obtuse hierarchy
of
> classes in the logic demo - I just can't figure out how to implement a
> ManhattanConnectionRouter. Can someone please explain to this simpleton
> (i.e. me) how to do this? Thanks in advance...
>
> Bob
>
>
>
Re: ManhattanConnectionRouter revisited [message #8482 is a reply to message #8451] Thu, 06 June 2002 16:03 Go to previous messageGo to next message
Eclipse UserFriend
Bob,

there's nothing to implement, you can use the class as is.

just
- create two figures
- create an anchor per figure (eg ChopboxAnchor) and refer to the
figure in the anchor's constructor
- create an connection (Polyline..)
- set the connections start and end anchor
- set a router (i.e. ManhattanConnectionRouter) for the connection
- invoke route() on the connection

the router will then:
- erase the pointlist of the connection
- let the anchors calculate their resp. positions (for a chopbox this
is determined by the intersection of the line going through the centers
of the enclosing rectangles of both figures and those rectangles
themselves )
- add a start and end point to the pointlist of the connection
corresponding with the positions of the anchors
- add points between those begin and end point specific to the router's
algorithm. For a manhattan algorithm the connection will have only
vertical and /or horizontal strokes.




Bram


Eric Bordeau wrote:

> I'm not really sure what you're having trouble with. Could you be more
> specific?
>
> Eric
>
> "Bob Brodt" <rbrodt@hotmail.com> wrote in message
> news:ado29e$gbj$1@rogue.oti.com...
>
>>OK, I guess I'm just too dumb (lazy?) to see through the obtuse hierarchy
>>
> of
>
>>classes in the logic demo - I just can't figure out how to implement a
>>ManhattanConnectionRouter. Can someone please explain to this simpleton
>>(i.e. me) how to do this? Thanks in advance...
>>
>>Bob
>>
>>
>>
>>
>
>
Re: ManhattanConnectionRouter revisited [message #8511 is a reply to message #8482] Thu, 06 June 2002 17:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

> Bob,
>
> there's nothing to implement, you can use the class as is.
>
> just
> - create two figures
> - create an anchor per figure (eg ChopboxAnchor) and refer to the
> figure in the anchor's constructor
> - create an connection (Polyline..)
> - set the connections start and end anchor
> - set a router (i.e. ManhattanConnectionRouter) for the connection
> - invoke route() on the connection

You don't need to invoke route(). route is part of validate(), which gets
called automatically.

> the router will then:
> - erase the pointlist of the connection
> - let the anchors calculate their resp. positions (for a chopbox this
> is determined by the intersection of the line going through the centers
> of the enclosing rectangles of both figures and those rectangles
> themselves )
> - add a start and end point to the pointlist of the connection
> corresponding with the positions of the anchors
> - add points between those begin and end point specific to the router's
> algorithm. For a manhattan algorithm the connection will have only
> vertical and /or horizontal strokes.
>
>
>
>
> Bram
>
>
> Eric Bordeau wrote:
>
> > I'm not really sure what you're having trouble with. Could you be more
> > specific?
> >
> > Eric
> >
> > "Bob Brodt" <rbrodt@hotmail.com> wrote in message
> > news:ado29e$gbj$1@rogue.oti.com...
> >
> >>OK, I guess I'm just too dumb (lazy?) to see through the obtuse
hierarchy
> >>
> > of
> >
> >>classes in the logic demo - I just can't figure out how to implement a
> >>ManhattanConnectionRouter. Can someone please explain to this simpleton
> >>(i.e. me) how to do this? Thanks in advance...
> >>
> >>Bob
> >>
> >>
> >>
> >>
> >
> >
>
>
Re: ManhattanConnectionRouter revisited [message #8592 is a reply to message #8511] Fri, 07 June 2002 04:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

Hi!

The ManhattenRouter is great, but it is possible to modify it a little bit
for 2.0 release?
Look at the attached picture. I added a arrow decoration to the end of the
target connection. The ManhattenRouter routes after its strict algorithm. I
think it should look at decorations (especially arrows) to ensure a better
quality of routing, which looks nicer.

Cu, Gunnar




Re: ManhattanConnectionRouter revisited [message #8640 is a reply to message #8592] Fri, 07 June 2002 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

Please open a feature request. There is nothing on the decoration that
would tell us how "big" it is. Maybe you could just configure the router
with an offset.

"Gunnar Wagenknecht" <g.wagenknecht@intershop.de> wrote in message
news:adpoq8$60d$1@rogue.oti.com...
> Hi!
>
> The ManhattenRouter is great, but it is possible to modify it a little bit
> for 2.0 release?
> Look at the attached picture. I added a arrow decoration to the end of the
> target connection. The ManhattenRouter routes after its strict algorithm.
I
> think it should look at decorations (especially arrows) to ensure a better
> quality of routing, which looks nicer.
>
> Cu, Gunnar
>
>
>
>
>
Re: ManhattanConnectionRouter revisited [message #9556 is a reply to message #8640] Tue, 11 June 2002 14:57 Go to previous messageGo to next message
Eclipse UserFriend
Randy Hudson wrote:
> Please open a feature request.

Opened http://bugs.eclipse.org/bugs/show_bug.cgi?id=19931

--
Dave Orme
Advanced Systems Concepts
http://www.asc-iseries.com
Re: ManhattanConnectionRouter revisited [message #9746 is a reply to message #9556] Wed, 12 June 2002 01:43 Go to previous message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

Hi!

Sorry, I was a little bit faster ;)

http://bugs.eclipse.org/bugs/show_bug.cgi?id=19601

Cu, Gunnar
Previous Topic:OK I'll start the ball rolling...
Next Topic:GridLayout
Goto Forum:
  


Current Time: Fri Jul 18 07:11:01 EDT 2025

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

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

Back to the top