Tree layout for children widgets inside a parent widget
- From: < >
- To:
- Subject: Tree layout for children widgets inside a parent widget
- Date: Fri, 9 Dec 2011 15:57:53 +0000 (GMT)
Hi,
I am using the Visual Library in a NB Platform app to create a scene
with a bunch of 'container' widgets, that in turn contain an heirarchy
of children widgets. I add the children widgets to the container
widget and not to the scene. I use TreeGraphLayout to layout the
containers. Is it possible to apply TreeGraphLayout in some way to the
children inside the container widget? I noticed that
TreeGraphLayout.performNodesLayout throws an
UnsupportedOperationException. Is this method perhaps what I am
looking for, but not yet implemented?
Example hieriarchy:
a topWidget
a number of containerWidgets
an heirarchy of children inside a container widget, e.g.:
containerWidget.addChild(level1)
containerWidget.addChild(level2_a)
containerWidget.addChild(level2_b)
with connections:
top -> container1 -> level1 -> level2_a
-> level2_b
-> container2 -> ...
I would really appreciate it if someone could point me in the right
direction!
Regards,
Ilana
|
Tree layout for children widgets inside a parent widget |
ilana.loubser | 12/09/2011 |
