Class diagram 'realization' of interface?

If I have an interface and a class that implements it, how do I show this in a class diagram?

The only place I can find to mark the class as an interface is in ‘Class Code Details’ but that does not make <> appear in the diagram.

Then between the two classes I believe it should be a dashed line with an open triangle as the arrow, but I can’t find that as an option.

I’m using the IDEA SDE.

Thank you,
Wendy

Dear Wendy,

Thank you for your message. Currently the stereotype settings and code detail setting are separated and that’s why you will have this feeling. In order to generate the realization, you must set the code detail to “interface” manually. And for the realization relationship (dash line), you can press on the Generalization icon at the diagram toolbar and select Realization in the popup. After that you should able to create the realization relationship for your classes. If you have any further questions, please feel free to contact us again.

Best regards,
Rain

Thank you! The secret is to right-click on the icons in the tool bar. :slight_smile:

1 Like