Skip to main content



      Home
Home » Eclipse Projects » GEF » rounded connections
rounded connections [message #85086] Wed, 25 June 2003 03:41 Go to next message
Eclipse UserFriend
Originally posted by: idan_zak2.walla.co.il

Does anyone knows how can i create a rounded connections?
i need such connections so i could connect a point to itself for example.

thanks.
Re: rounded connections [message #85116 is a reply to message #85086] Wed, 25 June 2003 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andreas.rummler.tu-ilmenau.de

Idan schrieb:

> Does anyone knows how can i create a rounded connections?
> i need such connections so i could connect a point to itself for example.

Your ConnectionEditPart has a protected method createFigure(). The
default is returning a PolylineConnection here. You have to create your
own "rounded" connection by extending org.eclipse.draw2d.Shape (or
Polyline) and return an instance in this method.


Andreas Rummler


--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
+ Andreas Rummler +
+ Technical University of Ilmenau, Germany (__) +
+ Department Of Electronic Circuits & Systems (oo) +
+ \/-------\ +
+ MAIL: mailto:arummler@acm.org || | \ +
+ MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
+ WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
+ PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
Re: rounded connections [message #85233 is a reply to message #85116] Wed, 25 June 2003 11:35 Go to previous message
Eclipse UserFriend
Originally posted by: idan_zak2.walla.co.il

Does any one already implemented such connection so i can have an example??

thanks.


"Andreas Rummler" <andreas.rummler@tu-ilmenau.de> wrote in message
news:bdbj64$e2q$1@rogue.oti.com...
> Idan schrieb:
>
> > Does anyone knows how can i create a rounded connections?
> > i need such connections so i could connect a point to itself for
example.
>
> Your ConnectionEditPart has a protected method createFigure(). The
> default is returning a PolylineConnection here. You have to create your
> own "rounded" connection by extending org.eclipse.draw2d.Shape (or
> Polyline) and return an instance in this method.
>
>
> Andreas Rummler
>
>
> --
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
> + Andreas Rummler +
> + Technical University of Ilmenau, Germany (__) +
> + Department Of Electronic Circuits & Systems (oo) +
> + \/-------\ +
> + MAIL: mailto:arummler@acm.org || | \ +
> + MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
> + WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
> + PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs and the universe trying
> to produce bigger and better idiots. So far, the universe is winning."
> Richard Cook
>
Previous Topic:Two classes of children on two separate layers
Next Topic:Refreshing from EditPart
Goto Forum:
  


Current Time: Tue May 13 13:45:05 EDT 2025

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

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

Back to the top