Book a Demo

Author Topic: Icons for custom UML stereotypes  (Read 3051 times)

Lucien Weller

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Icons for custom UML stereotypes
« on: August 29, 2012, 01:02:04 am »
Is it possible to define an alternative icon for a custom UML stereotype that will displayed when "Use Stereotype Icons" is enabled (like build in stereotype such as "target")?

The only thing I was able to do with custom stereotype, was a fully custom appearence behaviour by defining a shape script or a meta file for the UML stereotype. But I only want to replace the <<stereotype>> of a class with an icon for better visual overview.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Icons for custom UML stereotypes
« Reply #1 on: August 29, 2012, 09:00:42 am »
You can create a decoration shape in a shape script. Something like this:
Code: [Select]
decoration green
{
      orientation="NE";
      setfillcolor(0,255,0);
      ellipse(0,0,100,100);
}
Unfortunately, decorations don't obey the "Use Stereotype Icons" setting.
The Sparx Team
[email protected]