Author Topic: MDG - change diagram icon  (Read 154 times)

sig550

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
MDG - change diagram icon
« on: December 07, 2017, 03:07:52 am »
Hello everybody,

is it possible to change the icon from a diagram? The diagram I specified displays the icon of a class diagram. However, I want to display the icon of an analysis diagram.

I suppose I have to add an attribute to the stereotype or the metaclass.

(For example, the icon appears on the left of the diagram types when a diagram is added to a package.)

Thanks a lot.


Best regards
sig550

Uffe

  • EA Practitioner
  • ***
  • Posts: 1072
  • Karma: +81/-5
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: MDG - change diagram icon
« Reply #1 on: December 07, 2017, 03:09:53 am »
Hello,

The icon is not configurable. Instead, extend the diagram type that has the icon you want.

/Uffe
My theories are always correct, just apply them to the right reality.

sig550

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: MDG - change diagram icon
« Reply #2 on: December 07, 2017, 03:33:53 am »
Thank you for your prompt reply.

Are there other attributes that are inherited by the extend?

If I extend another diagram, I have no way to use my own toolboxes. Because the corresponding attributes can be defined only in a metaclass.
« Last Edit: December 07, 2017, 03:38:59 am by sig550 »

sig550

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: MDG - change diagram icon
« Reply #3 on: December 07, 2017, 08:06:31 pm »
Hello,

now I get it. I have to give the appropriate name to the metaclass. In my case, the name is "Diagram_Analysis".

Best regards
sig550

Uffe

  • EA Practitioner
  • ***
  • Posts: 1072
  • Karma: +81/-5
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: MDG - change diagram icon
« Reply #4 on: December 07, 2017, 11:23:36 pm »
Yes, exactly.

As to other characteristics, well there are three basic types of diagram in terms of behaviour: "normal", sequence and timing. This type is not represented in any way as far as I know, it's just there. I assume that's inherited.

Other than that, most diagram characteristics can be specified with the styleex, pdata and other attributes.

/Uffe
My theories are always correct, just apply them to the right reality.