Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StarUML defining interface methods and attributes in the interface icon?

Tags:

uml

tool-uml

I'm just using StarUML to create my UML Class diagram and something is bothering me. I create an interface representation, which is a circle, however, there is no room to add which methods and attributes the interface defines. Is this normal UML practice?

If not, how do you know (say a class implements this interface and has 4 methods defined) which of the 4 methods came from the interface and which didnt?

Solved:

Ok just incase someone else has this problem- there are two notations, both are possible in StarUML but only one explicitly (the dot notation). To create the <> notation, enter the name as <> IInterface_Name and then draw a realisation line between the implementing classes. Be sure to manually delete the old (wrong) relationship you had by right clicking the class, collection editor and then relations.

like image 958
Jean Avatar asked Jul 22 '11 11:07

Jean


People also ask

How do you make an interface in StarUML?

In order to create Interface, Click [Toolbox] -> [Component] -> [Interface] button. Click at the position where Interface will be placed in the [main window]. At the quick dialog, enter interface name.

How do you get to the Toolbox in StarUML?

To show or hide Toolbox, press Ctrl+5 or check (or uncheck) View | Toolbox in Menu Bar.

How many diagrams are there in StarUML?

StarUML™ supports 11 UML diagram types. The user can freely create and manage different diagrams as needed.


1 Answers

It is very simple:

  1. If you need just show method of interface - right click on interface and un-select Format/Suppress operation (see blue circle on picture)
  2. If you need to display instead of circle just squared form of interface (on my picture it is ISome) use Format/Stereotype Display/Decoration (see red circle on picture bellow)

enter image description here

like image 133
Dewfy Avatar answered Oct 24 '22 03:10

Dewfy