Book a Demo

Author Topic: Component Diagram display stereotype images  (Read 10905 times)

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Component Diagram display stereotype images
« on: September 12, 2019, 02:53:42 pm »
Hi there,

I have a Component diagram with several objects on it i.e. components and classes.

I have specified decoration icons to be displayed for the stereotypes in the UML Types window but they are not being displayed in the Component diagram.

They are however being displayed in a Class diagram.

Does anyone know how they can be displayed in a Component diagram?

Thanks,
Rupert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Component Diagram display stereotype images
« Reply #1 on: September 12, 2019, 03:08:15 pm »
Have you tried converting the Component Diagram to a Class Diagram, changing the setting to the appropriate value then changing the diagram type back?

If that works, then "it's a bug, ".

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

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Component Diagram display stereotype images
« Reply #2 on: September 12, 2019, 03:10:36 pm »
Thanks Paolo,

How do I convert it from a Component diagram to a Class diagram?

Rupert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Component Diagram display stereotype images
« Reply #3 on: September 12, 2019, 03:59:18 pm »
Open the diagram and then select
Design | Diagram | Manage | Change Type

Geert

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Component Diagram display stereotype images
« Reply #4 on: September 12, 2019, 04:07:38 pm »
Yep, doesn't seem to make any difference.

I am using one of the new AWS (Component) diagrams but it doesn't seem to allow any shape scripts as icons in the diagram.

Does anyone have any ideas how I can display icons in one of these diagrams?

I want to use the AWS architecture diagram type because it lets me select objects as part of an AWS Group.

Thanks,
Rupert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Component Diagram display stereotype images
« Reply #5 on: September 12, 2019, 04:38:39 pm »
If it's an AWS diagram, you will need to go to the Properties window and unset the Diagram|Appearance|Custom Style option. You can set Custom Style back again on individual elements, but the diagram option sets it for everything on the diagram.
The Sparx Team
[email protected]

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Component Diagram display stereotype images
« Reply #6 on: September 12, 2019, 04:42:32 pm »
I would compare the properties of both diagrams to see if there's any difference there.
Look first for options like
- show shapescripts
- show stereotype icons
- ...

Geert

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Component Diagram display stereotype images
« Reply #7 on: September 13, 2019, 11:39:57 am »
OK, thanks for that.

I can change the Custom Style for an entire diagram but how do I change it for an individual element on a diagram?

Rupert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Component Diagram display stereotype images
« Reply #8 on: September 13, 2019, 11:47:42 am »
I can change the Custom Style for an entire diagram but how do I change it for an individual element on a diagram?

Right-click > Appearance > Enable Custom Draw Style

Also works on multiple selections.
The Sparx Team
[email protected]

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Component Diagram display stereotype images
« Reply #9 on: September 13, 2019, 12:31:38 pm »
Thanks KP.

I notice that you have to remove the Custom Style setting for the entire diagram before you can change the individual element custom style setting

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Component Diagram display stereotype images
« Reply #10 on: September 13, 2019, 01:01:11 pm »
Thanks KP.

I notice that you have to remove the Custom Style setting for the entire diagram before you can change the individual element custom style setting
How do you do that?

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

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Component Diagram display stereotype images
« Reply #11 on: September 13, 2019, 01:05:57 pm »
If the 'Custom Style' setting is selected for the entire diagram then the 'Enable Custom Draw Style' option for the element is greyed out.

You have to deselect the 'Custom Style' setting for the entire diagram first.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Component Diagram display stereotype images
« Reply #12 on: September 13, 2019, 01:25:02 pm »
If the 'Custom Style' setting is selected for the entire diagram then the 'Enable Custom Draw Style' option for the element is greyed out.

You have to deselect the 'Custom Style' setting for the entire diagram first.
Sorry, I meant where do I set  'Custom Style' for the entire diagram?  Not obvious to me.

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

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Component Diagram display stereotype images
« Reply #13 on: September 13, 2019, 01:40:36 pm »
See KP's answer further up in the page Paolo

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Component Diagram display stereotype images
« Reply #14 on: September 13, 2019, 02:21:50 pm »
See KP's answer further up in the page Paolo
That's why I asked,

I presume Neil meant <diagram context menu> | Appearance  (because there's no such menu item, "Appearance", for the diagram I was using).

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