Curved connnections [message #189912] |
Mon, 01 August 2005 07:31 |
Eclipse User |
|
|
|
Originally posted by: kedar.thakur.gmail.com
Hello people,
Can I create curved connections using GEF ?
Thanks in advance
Kedar T
|
|
|
Re: Curved connnections [message #189967 is a reply to message #189912] |
Mon, 01 August 2005 13:02 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
"kedar" <kedar.thakur@gmail.com> wrote in message
news:dckj3l$uk9$1@news.eclipse.org...
> Hello people,
>
> Can I create curved connections using GEF ?
>
Extend AbstractConnectionEditPart to create CurvedConnectionEditPart and
create a CurvedConnection which implements IConnection and extends Shape.
Implement the outlineShape() method to draw an arc using g.drawArc() method.
Then on CurvedConnectionEditPart override the createFigure() method to
return an instance of the CurvedConnection figure.
---
Sunil
|
|
|
|
Powered by
FUDForum. Page generated in 0.03406 seconds