Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » placing child and parent to same dimension and simultaneously placing childrens on both layers
placing child and parent to same dimension and simultaneously placing childrens on both layers [message #724144] Sun, 11 September 2011 03:10
karthick9686@gmail.com Missing nameFriend
Messages: 41
Registered: July 2011
Member
i have my root edit part as ScalableRootEditPart . my model root edit part has the following createfigure coding lets call it parentnode1

LayeredPane pane = new LayeredPane();
final Layer figure = new FreeformLayer();
figure.setLayoutManager( new FreeformLayout() );
figure.setBorder( new LineBorder( 1 ) );
figure.setForegroundColor( ColorConstants.red );

pane.add(figure);
return pane;

now i have an child1 with createfigure coding

final Layer figure = new FreeFormLayer();
figure.setLayoutManager( new FreeformLayout() );
figure.setBorder( new LineBorder( 2 ) );
figure.setForegroundColor( ColorConstants.green );
figure.setOpaque(true);
return figure;

my problem is bothe freeform layer gets added to the primary layer . i must be able to place the other model edit parts on both these layers . i am not able to place my other childrens on the below layer why?

i am able to place the children on the parent layer only if i give setopaque as false in child1 and when i do so i can not place children of child1?
Previous Topic:Markers for each EditPart?
Next Topic:Heop with the IGoToMarker
Goto Forum:
  


Current Time: Tue Mar 19 03:56:51 GMT 2024

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

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

Back to the top