I want to add decorating rectangles to my net (derived from GoDocument). So i started to create a class like ‘LinearGradientRoundedRectangle’ in your demo1 sample. When i add an instance to my net i want the point i pressed the mouse button to be the upper left corner and the point i released the mouse button to be the bottom right corner. So it should behave almost like a painting application.
What is the best way to do this?
(The net nodes i add to my document should further on be added in default size by single click on my view.)