Book a Demo

Author Topic: Stereotype in actor  (Read 3610 times)

Marcelo Magalhães

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Stereotype in actor
« on: August 26, 2008, 07:30:53 am »
Dear friends,

     I'm trying to show the stereotype in actor symbol in a use case diagram. I create the actor and create the stereotype <<system>> to demonstrate with this actor is a external system in my model, but I need to show this steretype in the use case diagram. How to do this?

Thanks.
Marcelo Magalhães
Rio de Janeiro - R.J.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Stereotype in actor
« Reply #1 on: August 26, 2008, 04:58:44 pm »
Unless I've overlooked something, stereotypes for actors are only displayed in rectangle notation (context menu "Advanced - Use Rectangle Notation").

If you want the stick man with stereotype, all I can think of is a shape script like

Code: [Select]
decoration version
{
   orientation="W";
   println("<<#stereotype#>>");
}

But don't ask me how make it look really good. Shape scripting is clumsy, inflexible and poorly documented.

Nick Webb

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Stereotype in actor
« Reply #2 on: December 11, 2008, 08:46:53 am »
(Greetings all)

For actor with stereotype i use...

shape main {
      addsubshape("inbuiltglyph", 100, 100);
      addsubshape("labels", 100, 100);

      shape inbuiltglyph {
            h_align = "center";
            drawnativeshape();            
      }
      
      shape labels {
            h_align = "center";
            println("<<#stereotype#>>");
      }      
}

Hope this helps

Nick

Nick Webb

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Stereotype in actor
« Reply #3 on: December 12, 2008, 10:33:19 pm »
Playing with the above script a bit more, I see the stereotype overlays the namespace when visible.  Can anyone advise whether there is a simple way to avoid this when the inbuilt glyph is used?

Cheers, Nick