Skip to main content



      Home
Home » Eclipse Projects » GEF » repositioning a figure
repositioning a figure [message #248785] Tue, 05 May 2009 05: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 18:40 Go to previous message
Eclipse UserFriend
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: Sun Mar 16 19:41:14 EDT 2025

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

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

Back to the top