Book a Demo

Author Topic: Viewing Status Colours in Non-rectangular form  (Read 5113 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Viewing Status Colours in Non-rectangular form
« on: June 06, 2017, 09:45:18 am »
It seems that status colours are only visible if the item is in rectangular form.  Is that correct, or have I left the secret sauce off the shapescripts I'm using?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Viewing Status Colours in Non-rectangular form
« Reply #1 on: June 06, 2017, 01:45:10 pm »
Apart from elements using the same notation as Requirements, all elements in EA draw the status colour using the shadow. If your shape script is disabling the shadow, it wont have anywhere to draw.

You can draw using the status colour in your shape script:

Code: [Select]
decoration statuscolor
{
orientation= "NE";
SetFillColor(GetStatusColor());
ellipse(0,0,100,100);
}

Note: GetStatusColor obeys the user option to display status colours and the model option for which types to display status colours for. This means users of your profile will automatically get consistent appearance if you use code like above. 

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Viewing Status Colours in Non-rectangular form
« Reply #2 on: June 06, 2017, 05:39:33 pm »
Apart from elements using the same notation as Requirements, all elements in EA draw the status colour using the shadow. If your shape script is disabling the shadow, it wont have anywhere to draw.

You can draw using the status colour in your shape script:

Code: [Select]
decoration statuscolor
{
orientation= "NE";
SetFillColor(GetStatusColor());
ellipse(0,0,100,100);
}

Note: GetStatusColor obeys the user option to display status colours and the model option for which types to display status colours for. This means users of your profile will automatically get consistent appearance if you use code like above.
Thanks, Simon,
but I don't think that answers my need.  (My question wasn't explicit enough - I'm after status colours in shadows)

I don't think I'm disabling shadow (unless disabling in a specific decoration - disables it for ALL [Including the main shape]).

So for an ArchiMate Technical Service - based on Activity, if I do nothing, I should see a status shadow in non-rectangular mode?

Your example code is drawing a circle in the NE corner of the shape with the appropriate Staus Colour as fill; yes?  The shadow should occur automatically (assuming NO suppression) with the Status Colour as fill; yes?

Paolo

Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Viewing Status Colours in Non-rectangular form
« Reply #3 on: June 07, 2017, 09:11:10 am »
It looks like the built in Technology Service stereotype for ArchiMate3 disables shadows. So you won't get a status colour displayed, even if you override the shape and call drawparentshape.

Just ran a test using the following shape script
Code: [Select]
shape main
{
StartPath();
moveto(0,0);
lineto(0,20);
lineto(20,0);
lineto(0,0);
EndPath();
FillandstrokePath();

startpath();
moveto(0,60);
lineto(100,60);
lineto(100,100);
lineto(0,100);
lineto(0,60);
EndPath();
StrokePath();

RoundRect(40,0,90,70,15,15);

ellipse(15,15,50,50);

}

After enabling status colour display for activities, only two of the four shapes drawn in that shape script have a status colour drawn on the shadow. (Using the outline)

There's certainly issues there. Currently onl

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Viewing Status Colours in Non-rectangular form
« Reply #4 on: June 07, 2017, 09:39:25 am »
Yes, I see.   There are DEFINITELY issues.  Interestingly, the status colour is a border on the shadow (on the ones that display) and not the shadow itself - which is what I was expecting.

Do I need to provide a formal bug report or will that be handled?

Paolo
« Last Edit: June 07, 2017, 09:45:45 am by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!