Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » repositioning a figure
repositioning a figure [message #248785] Tue, 05 May 2009 09:30 Go to next message
Eclipse UserFriend
Originally posted by: rodrigo.garcia.kotasoft.com

Hi,

I'm making an editor and I want to move or reposition a figure when
another figure is created having shared points. i.e: if the user creates
a new figure and put it above a second figure existing in the diagram,
the editor move down the second figure.

How can I do that? could someone give me a hint?

Thank you in advance
Re: repositioning a figure [message #248797 is a reply to message #248785] Tue, 05 May 2009 22:40 Go to previous message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
I would suggest handling this at the model level. When an item changes
position, it notifies interested parties of its new position. Some
"container" item can observe this and reposition other items as appropriate.

The figures will reposition automatically if you are following the
standard GEF patterns (model notifies edit part, edit part updates figure).

Let me know if this helps.

Ben

Rodrigo García wrote:
> Hi,
>
> I'm making an editor and I want to move or reposition a figure when
> another figure is created having shared points. i.e: if the user creates
> a new figure and put it above a second figure existing in the diagram,
> the editor move down the second figure.
>
> How can I do that? could someone give me a hint?
>
> Thank you in advance
Previous Topic:ShortestPathRouter delivers edges through source and target
Next Topic:[Announce] GEF 3.5.0 I200905041850 is available
Goto Forum:
  


Current Time: Fri Apr 26 19:24:36 GMT 2024

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

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

Back to the top