Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » children figures outside parent?
children figures outside parent? [message #240468] Mon, 07 January 2008 15:44
Richard Adams is currently offline Richard AdamsFriend
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


Previous Topic:Integate GEF in RCP application
Next Topic:Zest for java 1.5
Goto Forum:
  


Current Time: Thu Sep 19 13:07:43 GMT 2024

Powered by FUDForum. Page generated in 0.03794 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top