non-overlapping figures [message #70549] |
Fri, 27 October 2006 05:02  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03309 seconds