|Fixed Size Editor [message #529081]
||Thu, 22 April 2010 20:20
| Urs Breu
Registered: October 2009
I want to create an editor with a fixed size (determined by a background image).
What is the best way to approach this?
I have tried to achieve this behaviour by customizing the XYLayoutEditPolicy - specifically by overriding getConstraintFor(...) in order to restrict the possible drag/drop locations of edit parts. But I haven't been able to also change drop feedback, so the solution isn't that pleasing.
I could also try not use a ScrollingGraphicalViewer, but on the other hand I might still want to be able to scroll if the image is large. I merely want to restrict the editable area of the editor.
Any further ideas/pointers?
Powered by FUDForum
. Page generated in 0.16528 seconds