|
Re: how to edit DDiagram element? [message #1818742 is a reply to message #1818740] |
Thu, 26 December 2019 12:47 |
|
Hello,
You are trying to execute a purely graphical modification of the style of nodes, therefore you need to access to the NodeStyle of the element (getOwnStyle()) and then register which feature will be modified from the odesign specification or the change will disappear at the next refresh. To do this you need to register the feature "color" to the getCustomFeatures method. After that you can change the color itself (setBorderColor).
Depending on the kind of relation you want to display with your wizard, it can be easier for the user if you have an edge mapping presenting these relations without having to use a tool.
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: how to edit DDiagram element? [message #1818836 is a reply to message #1818753] |
Mon, 30 December 2019 09:44 |
|
Hello,
If you select a diagram element that has been modified from its specified type, in the tabbar of the editor a new action with the tooltip "Reset style properties to default value" will appear (it has an icon with a yellow arrow).
If you want to do it programmatically, in order to return each diagram element to their default style at once, you can use the command ResetStylePropertiesToDefaultValuesCommand.
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03379 seconds