Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Add bend point on a PolylineConnection
Add bend point on a PolylineConnection [message #140580] Tue, 29 June 2004 09:40 Go to next message
Skhiri Sabri is currently offline Skhiri SabriFriend
Messages: 23
Registered: July 2009
Junior Member
Hi all,

I would simply add bend points on a PloylineConnection. I added a
BendpointConnectionRouter, but I don't knows how I can specify the bend
points.
PolylineConnection conn = new PolylineConnection();
conn.setConnectionRouter(new BendpointConnectionRouter());
conn.setSourceAnchor(new ChopboxAnchor(from));
conn.setTargetAnchor(new ChopboxAnchor(to));
conn...?
Somebody knows how I can do that ?

Thanks and regards,

Sabri.
Re: Add bend point on a PolylineConnection [message #140757 is a reply to message #140580] Tue, 29 June 2004 21:12 Go to previous message
Eclipse UserFriend
Originally posted by: rlemaigr.ulb.ac.be

Hello sabri,

L'interface Connection pr=E9voit une m=E9thode setRoutingConstraint(Obje=
ct). =

C'est cette m=E9thode-l=E0 que tu dois utiliser. Tu dois passer en param=
=E8tre =

la liste (je veux dire java.util.List) des BendPoints associ=E9s =E0 la =
=

connexion.
L'appel =E0 setRoutingConstraint a pour effet:
- de mettre =E0 jour la contrainte associ=E9e =E0 la connexion dans le =

connection router qui s'occupe du layout de cette connexion-l=E0,
- de revalider la connexion.

Pour ce qui est du connection router, tu peux soit en associer =

explicitement un =E0 la connexion en appelant setConnectionRouter sur la=
=

connexion avec le router en param=E8tre, soit utiliser un ConnectionLaye=
r =

qui contient toutes tes connexions. Un ConnectionLayer poss=E8de un =

ConnectionRouter qui lui est propre et d=E8s que tu ajoutes la connexion=
=E0 =

la liste des enfants du ConnexionLayer avec add, elle "h=E9rite" du =

ConnectionRouter d=E9fini pour le ConnectionLayer. C'est comme =E7a que =
ces =

connexions sont g=E9r=E9es par d=E9faut dans GEF.

A demain,

r=E9gis


On Tue, 29 Jun 2004 09:40:02 +0000 (UTC), Skhiri Gabouje Sabri =

<sskhirid@ulb.ac.be> wrote:

> Hi all,
>
> I would simply add bend points on a PloylineConnection. I added a
> BendpointConnectionRouter, but I don't knows how I can specify the be=
nd
> points.
> PolylineConnection conn =3D new PolylineConnection();
> conn.setConnectionRouter(new BendpointConnectionRouter());
> conn.setSourceAnchor(new ChopboxAnchor(from));
> conn.setTargetAnchor(new ChopboxAnchor(to));
> conn...?
> Somebody knows how I can do that ?
>
> Thanks and regards,
>
> Sabri.
>



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Previous Topic:Feedback on drag
Next Topic:ConnectionLayer
Goto Forum:
  


Current Time: Fri Apr 26 03:46:26 GMT 2024

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

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

Back to the top