Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ConnectionAnchor
ConnectionAnchor [message #207314] Fri, 13 January 2006 08:40 Go to next message
Eclipse UserFriend
Originally posted by: samuele82.inwind.it

hi all,
i would like to create a anchor at center of a figure.
How can i do?
Thanks, Samuel
Re: ConnectionAnchor [message #207317 is a reply to message #207314] Fri, 13 January 2006 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Now that?s too easy!

The ChopBoxAnchor is a good starting point for this:
Overwrite/create a modification of ChopBox anchor
and let
#public Point getLocation(Point reference)
return getReferencePoint() (returns the center of your figure translated to
absolute coordinates)


regards, Ingo


"Samuele" <samuele82@inwind.it> wrote in message
news:19fa44e90987cbf001c5b80e9bd35a26$1@www.eclipse.org...
> hi all,
> i would like to create a anchor at center of a figure.
> How can i do?
> Thanks, Samuel
>
>
Re: ConnectionAnchor [message #207484 is a reply to message #207317] Mon, 16 January 2006 17:18 Go to previous message
Eclipse UserFriend
Originally posted by: samuele82.inwind.it

Hi Ingo,
i would like add a new anchor to a figure.
when I create a new connection outcoming from a figure, i'd like add a new
anchor in a new (different) position.
How i can do?
Thanks, samuel
Previous Topic:Does GEF support adding shortcut keys to palette items?
Next Topic:marco objects
Goto Forum:
  


Current Time: Thu Apr 18 20:36:27 GMT 2024

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

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

Back to the top