Skip to main content



      Home
Home » Eclipse Projects » GEF » Router with only one angle
Router with only one angle [message #249448] Tue, 30 June 2009 05:08 Go to next message
Eclipse UserFriend
Hi,

I try to find a router with only one rect angle in it.

When I use Manhattan-Router there are always to rect angles in it. What I
want is a router which has

- only one horizontal line, or
- only one vertical line, or
- exactly ONE horizontal and exactly ONE vertical line

depending on the position of he connections start and end point.

Does anyone know such a router?

Thanks and greetz
Carsten
Re: Router with only one angle [message #249543 is a reply to message #249448] Thu, 09 July 2009 12:39 Go to previous message
Eclipse UserFriend
Hello Carsten,

For a router that always starts and ends its connection with a horizontal
line, subclass ManhattanRouter#getStartDirection to return RIGHT, and
#getEndDirection to return LEFT.

Since for some reason ManhattanRouter is a final class, I had to take a
copy of its code to achieve this.

Alan
Previous Topic:GEF / Zest missing in Galileo? (
Next Topic:ScalableRootEditPart with draw2d
Goto Forum:
  


Current Time: Thu Mar 20 08:40:57 EDT 2025

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

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

Back to the top