Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » non-overlapping figures
non-overlapping figures [message #70549] Fri, 27 October 2006 05:02 Go to next message
Eclipse UserFriend
Originally posted by: tivadar.szemethy.netvisor.hu

Hello,

Maybe this is something very simple, I just couldn't come across it.

How can I prevent my figures in the editor to overlap ?

i.e. when the user moves/drags them around, I want to prohibit positions
when one is displayed on top of another.
(think of a graph editor where the nodes are small circles - I don't
want them to overlap)

thanks,
Tiv
Re: non-overlapping figures [message #71261 is a reply to message #70549] Sat, 28 October 2006 15:04 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

This topic was already discussed but there are two possibilities:
constrain node location on move (adjust location in
SetConstraintsCommand or add vetoing command from another edit policy
when location is bad) or do special layout after each diagram
modification that will relocate overlapping figures. You could do the
both to ensure that your nodes never overlap - even when location is
altered from another editor.

Tivadar Szemethy wrote:
> Hello,
>
> Maybe this is something very simple, I just couldn't come across it.
>
> How can I prevent my figures in the editor to overlap ?
>
> i.e. when the user moves/drags them around, I want to prohibit positions
> when one is displayed on top of another.
> (think of a graph editor where the nodes are small circles - I don't
> want them to overlap)
>
> thanks,
> Tiv
Previous Topic:API to compose the figures in GMF?
Next Topic:Editor bounds
Goto Forum:
  


Current Time: Fri May 09 12:56:36 EDT 2025

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

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

Back to the top