Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » z-order of children edit parts
z-order of children edit parts [message #671794] Thu, 19 May 2011 02:51
oinkl is currently offline oinklFriend
Messages: 17
Registered: September 2010
Junior Member
http://www.eclipse.org/forums/index.php/m/248539/

With reference to the linked thread, I've managed to implement z-ordering successfully in my application by modifying the order which is returned by getModelChildren().

I have an diagram editpart A, with child edit parts B(Rectangles), which have a user defined z-order. The problem is I have child edit parts for B, which contribute to the figure for A. I've overwritten getContentPane() on B to return the figure of parent edit part A, but this messes up ordering which I've implemented previously.

I found it this is caused by refreshChildren() on A performing some ordering of the elements of it's children. If I overwrite addChildVisual() on B to add the child figure to index -1(on A), there is no problem with the original ordering, except the child visuals are drawn on top of everything. I would want the child visuals to be added at the same index as its parent(B).

How would you recommend resolving this problem? Thanks.

[Updated on: Thu, 19 May 2011 02:54]

Report message to a moderator

Previous Topic:NPE when initialising GraphicalEditor
Next Topic:draw2d - setBackgroundPattern
Goto Forum:
  


Current Time: Fri Apr 26 17:08:38 GMT 2024

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

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

Back to the top