Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Filling Color For Sirius Diagram Container
Filling Color For Sirius Diagram Container [message #1441208] Thu, 09 October 2014 11:52 Go to next message
pragati shinde is currently offline pragati shindeFriend
Messages: 2
Registered: September 2014
Junior Member
Hi,

I am able to generate sirius diagram programmatically , with some default color for all containers in diagram . But i want to fill different color for each container in diagram , how to do it programmatically?
Re: Filling Color For Sirius Diagram Container [message #1441835 is a reply to message #1441208] Fri, 10 October 2014 08:54 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 470
Registered: May 2011
Senior Member
Hello,

It depends how you want to select the color for these container.
One way is to define "Conditional style" in your mapping in order to
select a color depending of a condition.
Another way, is to create a new "palette" (under the root element of
your VSM). In this palette, you create an interpolated color (that you
will use in the style of your container mapping) with a "color value
computation expression" that will return a different integer value for
each containers of your diagram (index of the element among all of
them?) between the interval of the color steps that you will define as
sub-elements (0 to number of element?). This will result in a graduated
shading through your containers. Note that you can had as much color
step as you want in order to have several graduated shading.

Regards,
Steve

Le 09/10/2014 13:52, pragati shinde a écrit :
> Hi,
>
> I am able to generate sirius diagram programmatically , with some
> default color for all containers in diagram . But i want to fill
> different color for each container in diagram , how to do it
> programmatically?


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Multiline labels and styled text
Next Topic:Reuse entire group of tools across several diagrams
Goto Forum:
  


Current Time: Wed Apr 01 12:50:27 GMT 2020

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

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

Back to the top