Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to define my own anchor?
How to define my own anchor? [message #224387] Mon, 16 October 2006 08:14 Go to next message
Eclipse UserFriend
Originally posted by: mumdelxr.163.com

Hi, all
There is no appropriate anchor define in GEF to use in my project ,
so , how to write my own anchor and make the connection connect to the position I wanted . Which method in AbstractConnectionAnchor compute the coordinate of the position to be connected.
Re: How to define my own anchor? [message #224405 is a reply to message #224387] Mon, 16 October 2006 09:21 Go to previous messageGo to next message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
在 2006-10-16一的 04:14 -0400,xinrong写道:
> Hi, all
> There is no appropriate anchor define in GEF to use in my project ,
> so , how to write my own anchor and make the connection connect to the position I wanted . Which method in AbstractConnectionAnchor compute the coordinate of the position to be connected.
Hi,
Very import method is getLocation(Point reference);
Maybe you want check out logic sample where has a
FixedConnectionAnchor.

Regards

Qinxian.
Re: How to define my own anchor? [message #224515 is a reply to message #224405] Tue, 17 October 2006 00:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mumdelxr.163.com

Hi, Qinxian
Thanks for your reply.
Re: How to define my own anchor? [message #224560 is a reply to message #224515] Tue, 17 October 2006 05:29 Go to previous message
Eclipse UserFriend
Originally posted by: mumdelxr.163.com

Thanks QinXian. I have found the solution to my problem.
I override the method getLocation(Point reference), write my codes which calculate the coordinate of the position where my connecion connect
Previous Topic:Questions regarding Evaluation (Multiple Pages / PDF Export / Grid Layout )
Next Topic:Three requests
Goto Forum:
  


Current Time: Thu Apr 18 17:18:47 GMT 2024

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

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

Back to the top