Hello Dennis,
Maybe you can try something like this:
testNodeLabeling
| view rawView nodes node label |
rawView := ROView new.
view := ROMondrianViewBuilder view: rawView.
view shape rectangle withoutBorder.
node := view node: 'example' forIt:[
view shape rectangle size: 100.
view node: 1.
view shape label.
view node: 'test'.
view verticalLineLayout.
].
view noLayout.
view open.
So you have a node that contains 2 nodes, your original node and its label.
With this you can re-arrange any way you like. For example, if you want to
put the label in the top you can do something like this:
nodes := view node: 'example' forIt:[
view shape label.
view node: 'test'.
view shape rectangle size: 100.
view node: 1.
view verticalLineLayout.
].
I hope it helps.
Cheers,
Vanessa.
--
View this message in context:
http://forum.world.st/Roassal-ROTranslatingShape-label-besides-node-tp46490…
Sent from the Moose mailing list archive at
Nabble.com.