Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to move an anchor by user
how to move an anchor by user [message #203850] Mon, 28 November 2005 16:11 Go to next message
Hannes Niederhausen is currently offline Hannes NiederhausenFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I want to make it possible to let the use move an anchor. I tried to add a
XYLaoutPolicy to the Connection, hoping I get an request fo a
moveChangedCommand, but I get no one.

My question is, how can I get the new coordinates, if the user moves the
anchor?

thangs in advance
Hannes
Re: how to move an anchor by user [message #203867 is a reply to message #203850] Mon, 28 November 2005 17:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Hi,

I suppose you have to create an editpart with a little figure, which hosts
your anchor to receive move-requests.

Regards, Ingo




<el_bosso@gmx.de> wrote in message news:dmfa7e$a1d$1@news.eclipse.org...
> Hi,
>
> I want to make it possible to let the use move an anchor. I tried to add a
> XYLaoutPolicy to the Connection, hoping I get an request fo a
> moveChangedCommand, but I get no one.
>
> My question is, how can I get the new coordinates, if the user moves the
> anchor?
>
> thangs in advance
> Hannes
Re: how to move an anchor by user [message #203871 is a reply to message #203867] Mon, 28 November 2005 18:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

No, you don't. There are already endpoint handles (EndpointEditPolicy),
which send "reconnect" requests to the target node. All you have to do is
interpret those requests as moves, and create commands that move the anchors
in the model. Then, when you refresh your figure, set the appropriate
connection anchor on the connection based on the model's properties. You
will have to write a simple anchor implementation for this.

"Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
news:dmfd39$f02$1@news.eclipse.org...
> Hi,
>
> I suppose you have to create an editpart with a little figure, which hosts
> your anchor to receive move-requests.
>
> Regards, Ingo
>
>
>
>
> <el_bosso@gmx.de> wrote in message news:dmfa7e$a1d$1@news.eclipse.org...
>> Hi,
>>
>> I want to make it possible to let the use move an anchor. I tried to add
>> a
>> XYLaoutPolicy to the Connection, hoping I get an request fo a
>> moveChangedCommand, but I get no one.
>>
>> My question is, how can I get the new coordinates, if the user moves the
>> anchor?
>>
>> thangs in advance
>> Hannes
>
>
Re: how to move an anchor by user [message #203879 is a reply to message #203871] Mon, 28 November 2005 20:22 Go to previous messageGo to next message
Hannes Niederhausen is currently offline Hannes NiederhausenFriend
Messages: 18
Registered: July 2009
Junior Member
Thank you. I'll try this.

Randy Hudson wrote:

> No, you don't. There are already endpoint handles (EndpointEditPolicy),
> which send "reconnect" requests to the target node. All you have to do is
> interpret those requests as moves, and create commands that move the
> anchors in the model. Then, when you refresh your figure, set the
> appropriate connection anchor on the connection based on the model's
> properties. You will have to write a simple anchor implementation for
> this.
>
Re: how to move an anchor by user [message #203911 is a reply to message #203871] Tue, 29 November 2005 08:40 Go to previous message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Well, that
Previous Topic:SWTGraphics - wrong behaviour
Next Topic:L&F : Focus Rectangle
Goto Forum:
  


Current Time: Wed Feb 05 10:46:10 GMT 2025

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

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

Back to the top