Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » View FillStyle(Changing the style for a view object)
View FillStyle [message #863340] Sun, 29 April 2012 11:56
Davy Ncuti is currently offline Davy NcutiFriend
Messages: 1
Registered: April 2012
Junior Member
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();

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
Previous Topic:Exception while generating the code
Next Topic:Not able to create new GMF project
Goto Forum:

Current Time: Sat Nov 28 23:39:19 GMT 2020

Powered by FUDForum. Page generated in 0.06241 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top