Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connection Routing based on Model
Connection Routing based on Model [message #103375] Tue, 04 November 2003 13:06 Go to next message
Eclipse UserFriend
Originally posted by: brianv.phreaker.net

I need to route my connections based on the EditParts to which they are
connected. This is different from the selectable routing in Logic; where all
connections are either routed Manually or via the Manhattan router.

So I need something like this in my ConnectionRouter ...

The router would check the properties of the model objects between which the
connection exists. Based on this information it would route the connection
appropriately. Obviously; when I change the properties of the Models, I
would expect all connections connected to that model to re-rout accordingly.

The Router does not have any access to model information ... Can you suggest
any clean method by which I can implement this ?

Thanks,
Brian.
Re: Connection Routing based on Model [message #103454 is a reply to message #103375] Tue, 04 November 2003 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Without knowing exactly what the model properties are, this is kind of hard
to answer. But, how is this any different from the bendpoint scenario in
Logic? The connection model contains a list of "model bendpoints". Those
objects are then translated into their draw2d equivalent as a routing
constraint. Can you do the same? Take your model's properties, and create
a routing constraint that encapsulates them, without violating your clean
separation of model/view.

"Brian Fernandes" <brianv@phreaker.net> wrote in message
news:bo86j8$3sv$1@eclipse.org...
> I need to route my connections based on the EditParts to which they are
> connected. This is different from the selectable routing in Logic; where
all
> connections are either routed Manually or via the Manhattan router.
>
> So I need something like this in my ConnectionRouter ...
>
> The router would check the properties of the model objects between which
the
> connection exists. Based on this information it would route the connection
> appropriately. Obviously; when I change the properties of the Models, I
> would expect all connections connected to that model to re-rout
accordingly.
>
> The Router does not have any access to model information ... Can you
suggest
> any clean method by which I can implement this ?
>
> Thanks,
> Brian.
>
>
>
>
Re: Connection Routing based on Model [message #103618 is a reply to message #103454] Wed, 05 November 2003 13:20 Go to previous message
Eclipse UserFriend
Originally posted by: brian.fernandes.codito.com

A possible property is an angle the conneciton is to make with the editPart
to which it is connected.

My routing depends on the properties of the models to which the connection
is connected; NOT the properties of the connection itself.

I am following the Routing Constraints method though. In the attachSource
and attachTarget methods, I get the properties of the model to which the
connection is connected and set them in the routing constraint. So now the
routing constraint of the connection should be properly set everytime I
connect /reconnect the connection. What remains is to make sure all the
connections re-reout when the property of the model changes ... I don't
forsee too many problems in that area, not yet at least ;)

Thanks,
Brian.


"Randy Hudson" <none@us.ibm.com> wrote in message
news:bo8gho$h2c$1@eclipse.org...
> Without knowing exactly what the model properties are, this is kind of
hard
> to answer. But, how is this any different from the bendpoint scenario in
> Logic? The connection model contains a list of "model bendpoints". Those
> objects are then translated into their draw2d equivalent as a routing
> constraint. Can you do the same? Take your model's properties, and
create
> a routing constraint that encapsulates them, without violating your clean
> separation of model/view.
>
Previous Topic:Do I need to iterate over my EMF model ?
Next Topic:Absolute beginner question about GEF1 example on wiki
Goto Forum:
  


Current Time: Sat Oct 19 16:10:55 GMT 2024

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

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

Back to the top