Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » customizing connections
customizing connections [message #239908] Tue, 20 November 2007 15:12 Go to next message
Richard Adams is currently offline Richard AdamsFriend
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
Hello,
So far I have been using standard polyline connections, the basic
behaviour
has worked very well.
Now I have to implement connections with 2 decorators at each end. The
1st pair of decorators must be offset from the connection ends and it must
look as though
the link ends at the decorators. However the link must continue invisibly
to the
'terminal decorator' which is centred over the connection anchor.

i.e.,
link 1st gap terminaldecorator
dec
------> {}

Is this possible in draw2d? Is there a way to make parts of a connection
visible or not? I tried adding extra points to the line but I believe this
is how bendpoints are implemented. Also, is it possible to have multiple
decorators
without extensive subclassing?

Thanks

Richard


Re: customizing connections [message #240050 is a reply to message #239908] Mon, 03 December 2007 17:45 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

It is possible to have multiple decorators on a connection without
extensive sub-classing. I don't think it's possible to make parts of
connection invisible - it's the entire figure that can visible/invisible.

Cheers,
Alex
Re: customizing connections [message #241245 is a reply to message #240050] Mon, 04 February 2008 21:42 Go to previous message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
Alex Boyko 写道:
> Hi,
>
> It is possible to have multiple decorators on a connection without
> extensive sub-classing. I don't think it's possible to make parts of
> connection invisible - it's the entire figure that can visible/invisible.
>
> Cheers,
> Alex
>
>
Hi,

But It is possible only draw some parts, but not draw other parts of a
connection:)

Cheers,
Xiangya
Previous Topic:Custom Figures and two figures for one EditPart
Next Topic:Persistence to a database
Goto Forum:
  


Current Time: Thu Apr 25 15:56:07 GMT 2024

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

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

Back to the top