Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to apply fill color programatically on selected EObject(How to apply fill color programatically on selected EObject)
How to apply fill color programatically on selected EObject [message #1803797] Mon, 11 March 2019 04:55 Go to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 81
Registered: June 2018
Member
Hii

Could anyone please help me on How to apply fill color programatically on selected EObject
Re: How to apply fill color programatically on selected EObject [message #1803867 is a reply to message #1803797] Tue, 12 March 2019 16:20 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
Hello

I consider theEObject you are talking about is a DRepresentationElement (a node or an edge or ..) which inherits from DStylizable
You can access the style that hold the graphical properties using DStylizable.getStyle()
Then it will depend on which specific Style type you have. Open the Style hierarchy and find methods that contain "color"

Regards
Laurent


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Problem defining some design requiriments
Next Topic:Drag elements out of diagram
Goto Forum:
  


Current Time: Fri Apr 26 01:16:40 GMT 2024

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

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

Back to the top