How to change a bordered node's label location programmatically? [message #1834796] |
Wed, 18 November 2020 02:17  |
Eclipse User |
|
|
|
Hi,
I'm working on customizing a sirius diagram, and now I met a problem that I cannot get the access to a bordered node's label's location. I found that SiriusGmfHelper.getLabelNode method can access the associated label node of a given gmf node (in my scene it's the bordered node), and I tried to use labelNode.setLayoutConstraint to set its location, hoping to change the label's location. But the method seems doesn't work, although the label node's layout constraint changed, the label just won't move to the location I appointed.
I don't know what's wrong about my procedure. Is there something I did wrong? Or is there any other methods to change a bordered node's label location programmatically? Any hints or advice would help a lot.
Thanks,
Yufei Zhou
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03328 seconds