How class diagrams in StarUML display interface

Source: Internet
Author: User
Tags staruml

StarUML in the class diagram add interface, the default is to display a circle (that is, we often say lollipop), how to let the interface display <> it.

The default interface diagram is as follows

UML Class Diagram Interface lollipop notation

In UML class diagrams, there are 2 ways to represent interfaces

1, divided into two layers, the first interface name, the top of the <> logo, the second layer is the interface method, which is commonly known as the two-layer rectangular box representation;

2, the same as the class diagram, the difference is that the second layer is empty, there is a lollipop logo on the rectangular box, commonly known as lollipop notation;

Below we explain in detail how to turn the interface into a two-layer rectangular box representation

1. Select the interface diagram you want to modify, right-click "Format" → "stereotype Display" → "Textual"

The URL class diagram sets stereotype display to textual

2, after the above settings, you can find that the interface representation has been changed from lollipop notation to two-layer rectangular box, but there is also a problem, the method name and attributes are not displayed, let the interface display method name and properties, follow these steps to set: "Format" removed "suppress Attributes "and" suppress Operations ".

URL class diagram settings display properties and methods

3, the final, into the set, the interface is shown in the following figure, the successful interface from the bar sugar representation into a two-layer rectangular box representation

UML Class Diagram interface two-layer rectangular box representation method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.