children figures outside parent? [message #240468] |
Mon, 07 January 2008 15:44 |
Richard Adams Messages: 77 Registered: July 2009 Location: Edinburgh |
Member |
|
|
Hello,
We have a reasonably functional GEF based editor based on Shapes/logic
example.
We have been given a new requirement that children should be allowed to
overlap their parents to some extent, and not necessarily be fully
contained by that parent. IS this possible in draw 2d? In the docs (and
from our own experience) it seems that child figures are always cropped by
their parent figure, is their an elegant way round this? Two solutions we
have come up with so far are
1) Allow a certain amount of 'padding' around the parent shape so that the
parent shape's visible figure is smaller than its actual size. - works but
snap-to-grid
behaves poorly as the shape does not snapto its visible edge.
ii) Make the overlapping element's parent the shapes parent, so it and the
shape it is overlapping are siblings. Then manually update the location of
the 'child' when the leader sibling is moved. - gets tricky with multiply
nested shapes.
Neither of these solutions seems ideal, basically we want child elements
to behave just as they do when they are fully contained by their parent
except they
should be allowed to overlap the parent.
Thanks for any advive or tips.
Cheers
Richard
Dr Richard Adams, University of Edinburgh
http://richardadams606blog.blogspot.com/
http://csbe.bio.ed.ac.uk/adams.php
|
|
|
Powered by
FUDForum. Page generated in 0.03794 seconds