Understand Class Presentation Options

Unified Modeling Language (UML) Class Diagram is a type of static structure diagram that describes the structure of a system by showing the system’s classes, their attributes, operations (or methods), and the relationships among objects. Class is the basic element in Class Diagram. Visual Paradigm offers a variety of presentation options that allow users to customize the view of the classes in diagrams. Below are all presentation options available to classes and what are their meaning.

 

Options Available Setting Meaning Example
Attributes
Show Initial Value Display the initial value of an attribute if it being defined. Show attribute initial value
Show Multiplicity Display the multiplicity value of an attribute if it being defined. Show attribute multiplicity
Show Code Details To show/hide the Attribute’s Code Details on selected class (override diagram’s setting), or specify the class follow to diagram’s Show Code Details setting. Project need to specify model for specific programming language. Show attribute code details
Show Type To show/hide attribute’s datatype (override diagram’s setting), or specify the class attributes follow to diagram’s Show Type setting. Show attribute data type
Suppress Implied “1” Multiplicity To show/hide the “1” multiplicity on attribute (override diagram’s setting), or specify the class attributes follow to diagram’s Suppress Implied “1” Multiplicity setting. Suppress attribute multiplicity equals to 1
Show Property Modifiers To show/hide the ID and readOnly modifier (override diagram’s setting), or specify the class attributes follow to diagram’s Show Property Modifier setting. Show attribute's property
No Sorting Manual sort attribute’s order.
Sort by Name Sort attributes according to their names in alphabetical order. Sort attributes by name
Sort by Visibility Sort attributes according to their visibility. Sort attributes by visibility
Sort by Stereotype Sort attributes according to its stereotypes. Sort attributes by stereotype
Hide All Hide all attribute(s) in a class. Hide all attributes
Show All Show all attribute(s) in a class. Show all attributes
Show Public Only Only show public attribute(s) in a class. Only show public attributes
Customized Customize the show/hide of multiple attributes at once.
Show Inherited Attributes To show the inherited attributes in class. Show inherit attributes
Show Referenced Attributes To show/hide the attributes which comes from association (override diagrams’s setting), or specify the class attributes follow to diagram’s Show Referenced Attributes setting. Show reference attributes
Operations
Show Signature To show the entire operation situation. Show operation signature
Show Parameters To show/hide the operation’s parameters (override diagram’s setting), or specify the class operations follow to diagram’s Show Parameters setting. Show/hide operations parameters
Show Parameter Name To show/hide the name of parameters. Show or hide operation parameter's name
Show Parameter Direction To show/hide the direction of parameters. Show or hide operation parameter's direction
Show Parameter Code Details To show/hide the operation’s parameter code details (override diagram’s setting), or specify the class operations follow to diagram’s Show Parameters Code Details setting. To show or hide operation parameter's code details
Show Return Type To show/hide the return type of the operation (override diagram’s setting), or specify the class operations follow to diagram’s Show Return Type setting. To show or hide operation's return type
Show Template Parameters To show/hide operation’s template parameters. Show operation template parameters
Show Properties To show/hide the operation’s Query, Ordered and Unique properties. Show or hide operation's properties
Show Raised Exceptions To show/hide Raised Exception on operations. To show/hide operation's exception
Show Code Details To show/hide operation’s code details (override diagram’s setting), or specify the class operations follow to diagram’s Show Code Details setting. To show operation's code details
No Sorting Manual sort operation’s order
Sort by Name Sort operations according to their name in alphabetical order. Sort operation by name
Sort by Visibility Sort operations according to their visibility. Sort operation by visibility
Sort by Stereotype Sort operations according to its stereotypes. Sort operation by stereotype
Hide All Hide all operation(s) in a class. Hide all operations
Show All Show all operation(s) in a class. Show all operations
Show Public Only Only show public operation(s) in a class. Only show public operations
Customized Customize the show/hide of multiple operations at once.
Show Inherited Operations To show/hide inherited operations on selected class. Show inherit operations
Receptions
No Sorting Manual sort reception’s order
Sort by Name Sort receiptions according to their name in alphabetical order.
Sort by Visibility Sort receptions according to their visibility.
Sort by Stereotype Sort receiptions according to its stereotypes.
Hide All Hide all receiption(s) in a class.
Show All Show all reception(s) in a class.
Show Public Only Only show public receiption(s) in a class.
Customized Customize the show/hide of multiple reception at once.
Class Members
Show Stereotypes To show/hide class member’s stereotypes (override diagram’s setting). Show or hide class member's stereotypes
Show Constraints To show/hide class member’s constraints (override diagram’s setting). Show or hide class member's constraints
Wrap Members To perform line wrap on class member. Wrap class member
Visibility Style Display class member’s visibility using UML style, icon, or not display it on class (override diagram’s setting). Class member visibility style
Show Empty Compartments To show the attribute/operation/reception compartment even it is empty (override diagram’s setting). Show empty compartment
Show Ellipsis for Hidden Members Show ellipsis if the class got attributes/operations being set to hidden (override diagram’s setting). Show ellipses for hiddent class member
Show All Class Members To show all class members for selected class (override diagram’s setting). Show all class members
Hide All Class Members To hide all class members for selected class (override diagram’s setting). Hide all class members
Show Owner
Follow Diagram Follow to diagram’s Class Display Options.Show Owner setting.
Do not Show Only show the name of the class (override diagram’s setting). Do not show parent's name
Show Fully-Qualified Show fully-qualified parents below class name (override diagram’s setting). Show fully qualified parents
Show Name Only Show immediate parent name below class name (override diagram’s setting). Show immediately parent only
When Different from View Show fully-qualified parents only when the class in diagram under different parent compare to model structure (override diagram’s setting). Show parent when contained by different container
Show Template Parameters To show/hide class’s template parameters. To show or hide class's template parameters
Display as Robustness Analysis Icon To display the classes as Robustness Analysis icon. Display class as Robustness Analysis icon
Type Show attribute datatype, operation parameter datatype and operation return type as fully-qualified, name only, or as relative path/ Control the display of class member's data type
Configure Class Presentation Options Configure multiple presentation options of selected class as once (override diagram’s setting).
Follow Diagram Follow diagram’s setting to display a class.
Standard Display class in standard UML notation (override diagram’s setting) Display class in standard UML notation
Stereotype Icon Display class according to it’s stereotype’s icon. Display class according to its stereotype's icon
User-Defined Display class with predefined images or image from file system.
Primitive Shape Display class as primitive shape such as Rectangle, Rounded Rectangle, Oval, Triangle, Octagon, Diamond, Pentagon, Trapezoid or Heaxgon. Display class with primitive shape
Caption Placement
Left To display the caption on the left side of the class (override diagram’s setting). Display class caption on left side
Center To display the caption at the center of the class (override diagram’s setting). Display class caption at center
Right To display the caption on the right side of the class (override diagram’s setting). Display class caption on right side
Follow Diagram Specify the class to follow diagram’s Caption Placement setting.
Show/Hide Stereotypes Show/hide multiple stereotypes on the selected classes.
Show/Hide Tagged Values Specify which tagged values of the selected class to be display on diagram. It can be follow diagrams Show/Hide Tagged Values setting, or override it by specify to display selected tagged values. Show/hide tagged values on selected class

 

 

Related Know-how

Related Link

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply