|Re: Moving figures in layout [message #834364 is a reply to message #834185]
||Sun, 01 April 2012 21:26
| Michael Golubev
Registered: July 2009
I think the simplest way is to start from the code from org.eclipse.draw2d.XYLayout, use Rectangle's as a constraints as it is normally done, with the only change that in the layout() method before the calling the child.setBounds(rect) additionally snap the 'rect' to be centered at the known vertical line.
When done with the draw2d part, you will probably need to fix the XYLayoutEditPloicy at the GEF layer to show the feedback using the same trick as above.
Michael "Borlander" Golubev
at Montages Think Tank, Prague, Czech Republic
Montages AG, Zürich, Switzerland
[Updated on: Sun, 01 April 2012 21:27]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.05207 seconds