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:Moving a figure on top of another
Next Topic:XMI on GEF
Goto Forum:
  


Current Time: Wed Oct 20 05:06:07 GMT 2021

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

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

Back to the top