View FillStyle [message #863340] |
Sun, 29 April 2012 11:56 |
Davy Ncuti Messages: 1 Registered: April 2012 |
Junior Member |
|
|
Hello
I am decomposing a diagram and I would like some of the components to appear half transparent while others are fully opaque.
I have view objects that I would like to change the appearance depending on whether the object is part of the needed nodes or not. So far I wanted to use a fill style to modify the appearance of the view and set the transparency as follows:
FillStyle fillStyle = org.eclipse.gmf.runtime.notation.NotationFactory.eINSTANCE.createFillStyle();
fillStyle.setTransparency(1)
and later on use an AddCommand as follows that would update the visibility of my diagram:
AddCommand setFillStyle = new AddCommand(editor.getEditingDomain(), view,NotationPackage.eINSTANCE.getView_Styles(), fillStyle);
However this approach seems not to work and I am out of ideas of how to do it. Can anyone help me please? I am really stuck
|
|
|
Powered by
FUDForum. Page generated in 0.02740 seconds