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 name 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?
|
|
|
Powered by
FUDForum. Page generated in 0.03724 seconds