Book a Demo

Author Topic: Icons on Use Case and generated Sequence Diagrams  (Read 7881 times)

hotdog1948

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Icons on Use Case and generated Sequence Diagrams
« on: August 22, 2018, 09:56:48 pm »
EA 14 - I wish to extend UML <<Metaclass>> Actor to a new <<stereotype>> intelligent machine class with an attached custom icon, and have that icon display appropriately on a Use Case diagram and on a Sequence Diagram generated from a Scenario description for that Use Case.

The approach I have taken defines a new UML Type with a custom shape script.  This succeeds in displaying the custom icon on the Use Case diagram, but the default icon for the base class displays for that same actor's swimlane on the generated Sequence Diagram.

What else do I need to do to have the custom icon for the new object on the Use Case display at the top of the swimlane for that same object on the Sequence Diagram generated from that Use Case?




qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Icons on Use Case and generated Sequence Diagrams
« Reply #1 on: August 23, 2018, 04:38:02 am »
AFAIK there are only stick men and rectangles allowed on SDs. So likely no chance to have that altered on request.

q.

Edit: On pp. 570 it reads
Quote from: UML 2.5
A Lifeline is shown using a symbol that consists of a rectangle forming its “head” followed by a vertical line (which may be dashed) that represents the lifetime of the participant. [...]The Lifeline head has a shape that is based on the classifier for the part that this lifeline represents. Often the head is a
white rectangle containing the name.

So I was wrong. You could send a feature request...
« Last Edit: August 23, 2018, 04:41:49 am by qwerty »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Icons on Use Case and generated Sequence Diagrams
« Reply #2 on: August 23, 2018, 09:34:49 am »
Hi Hotdog,
The approach we take when EA insists on displaying an icon that is not what we want is to create a rectangle with the same fill colour as the main shape over the top of the offending icon and then draw ours over the top as a decoration.

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

hotdog1948

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Icons on Use Case and generated Sequence Diagrams
« Reply #3 on: August 24, 2018, 11:57:23 pm »
Thanks, both, for your replies.  I will follow-up with your suggestions and report back.