Skip to main content



      Home
Home » Eclipse Projects » GEF » Multiple connections
Multiple connections [message #86548] Fri, 04 July 2003 13:20 Go to next message
Eclipse UserFriend
Originally posted by: akatti.yahoo.com

Hi,

I need to create multiple connections between the same source and the same
target something like this:

__________ __________
| |__________________| |
| |__________________| |
| |__________________| |
|__________| |__________|


The Fan router does not work for this requirement. Is there any other
router that I can use?

AK
Re: Multiple connections [message #86887 is a reply to message #86548] Fri, 11 July 2003 16:12 Go to previous messageGo to next message
Eclipse UserFriend
There's no router in GEF that will do this. It looks to me like a new type of
anchor would be better suited for this problem, instead of writing a new router.
In my opinion, an anchor's job is to place the connections endpoint, while the
router's job is to draw the part of the connection between the source and target
anchors. Since what you're concerned with is the placement of the endpoints, I
think an anchor would be the way to go. Maybe there should be some sort of
helper class that knows how many connections are anchored to a given figure and
determine an anchor's location by calculating the spacing required to fit all
the anchors.

Eric



AK wrote:

> Hi,
>
> I need to create multiple connections between the same source and the same
> target something like this:
>
> __________ __________
> | |__________________| |
> | |__________________| |
> | |__________________| |
> |__________| |__________|
>
>
> The Fan router does not work for this requirement. Is there any other
> router that I can use?
>
> AK
>
Re: Multiple connections [message #87492 is a reply to message #86887] Tue, 15 July 2003 19:01 Go to previous message
Eclipse UserFriend
Eric Bordeau wrote:
> There's no router in GEF that will do this. It looks to me like a new
> type of anchor would be better suited for this problem, instead of
> writing a new router. In my opinion, an anchor's job is to place the
> connections endpoint, while the router's job is to draw the part of the
> connection between the source and target anchors. Since what you're
> concerned with is the placement of the endpoints, I think an anchor
> would be the way to go.

If you want a very simple example of an anchor which does this, you can
look at the RelativeConnectionAnchor which is included in my July 2,
2003 post ("Contribution: RectilinearHandleRouter and supporting
classes") on this newsgroup...

Hope this helps,
Peter Armstrong
Previous Topic:Re: CVS Graph plugin for Eclipse available
Next Topic:BiDi and GEF
Goto Forum:
  


Current Time: Wed Apr 30 23:13:59 EDT 2025

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

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

Back to the top