Book a Demo

Author Topic: Creating my own stereotype icon  (Read 2593 times)

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Creating my own stereotype icon
« on: January 19, 2010, 04:06:45 pm »
Hi all,
I'm trying to set up an icon that displays a specific stereotype icon for the stereotypes in my MDG Technology profiles. So far, I can create an icon for display in the project browser but I can't seem to get it to display as a stereotype icon on the diagrams.

This picture on twitpic http://twitpic.com/yrafx shows a few things but the focus is the item at the bottom with the «operative business rule» stereotype.

You'll notice that it is an Artifact and the stereotype icon for Artifacts is shown. I want to add a stereotype icon for «operative business rule».

I'm sorry if this is in the doco but I haven't been able to find it.

Cheers,
Andrew.
Regards,
Andrew Warner.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Creating my own stereotype icon
« Reply #1 on: January 19, 2010, 10:32:08 pm »
Hi Andrew,

IMHO the easiest way to achieve this, is to provide an appropriate shape script for your stereotype.
You can setup this in the stereotype definition in your profile using the _image attribute.
See:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/shape_editor_2.html
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/supportedattributes_2.html

Use the drawnativeshape() method and add your icon as an extra decoration (not as subshape but outside 'shape main').

HTH
Günther