Monday, April 09, 2012 1:17 PM
I'm using Microsoft Visio 2010 Professional in German Language and I have to draw a UML Class diagram.
I created a Class and set up the attributes. In the properties of the class is no category which is called methods,
but "Operationen", in English it's maybe called operations or surgeries.
After creating the methods I search for a menu to specify the parameters of the method. I found it by the properties of the method.
You can set the parameter name, data type, sort and a standard value.
The sort can be chosen by a drop-down menu, which lists "eing.", "ausg.", "eing./ausg." in English it's maybe called "in", "out", "in/out".
In my understanding a parameter of a method is always a sort of input.
The problem is the parameter sort is displayed in the class diagram, e.g.:
+test(in. txt : str, in. txt : str)
The displaying of the parameter sort is a little bit confusing. Is possible to hide this?
Monday, April 09, 2012 4:11 PM
Parameters of sort "input" supply the parameter by value, parameters
of the "output" sort supply the parameter by reference (in other words,
by a pointer) so the method can write output data.
If you right-click on the shape there are various display options shown relating to attributes and types.
-- Paul Herber, Sandrila Ltd. Engineering and software shapes for Visio - http://www.sandrila.co.uk/
Tuesday, April 10, 2012 4:04 PM
Thank you for your answer.
Oh, my fault, a pointer can be used to output data indeed.
When I right-click on the shape, there is a point "Option for shape displaying" or so. But these settings do not look very useful.
You can change some generally options like display the class name and attribute/method visibility,
some attribute options like display the attribute type,
and you can hide the whole attribute or method section.
But I can't find an option to hide the method parameter sort.
Are there any other display options?