quick start on implementing own layout [message #48279] |
Fri, 06 December 2002 08:01  |
Eclipse User |
|
|
|
Hello,
I got my model displayed, which all elements placed on each other (all
loaction = (0,0)). My target is to layout my elements on the top edit
part figure, initially as well at user request ("do layout"-button
e.g.). My question is not about layout or routing algorithm but how to
integrate them in GEF.
As far as I understand GEF there should be a layout policy implemented
for the top level edit part under role LAYOUT_ROLE, but which policy and
to and where to implement what hooks? I don't want the algorithm to be
executed evertime an element is added, only initially and on user demand.
At the moment I set the sub elements location when they are created
(ElementEditPart.createFigure()), I want to put this responsibility onto
a layout object.
Thanks,
Chris
|
|
|
|
Powered by
FUDForum. Page generated in 0.27994 seconds