UML Designer User's Guide
In addition to the general display properties, the following display
properties are available for class and instance figures:
-
Select Display Options>Name Only to show only the name of
the class. This option hides any additional information (such as method
names).
If you select Name Only, you can also select Display
Options>Use Small Margins to make the figure as compact as
possible.
These options is also available on instance figures.
-
Select Display Options>Method Name Only to show only the
names of the methods of the class. This option hides additional
information about methods, such as parameters and return types.
-
Select Display Options>Show Scope to show scope indicators
for methods and attributes. Scope indicates whether a method or
attribute is public, private, or protected.
-
Select Display Options>Show Visibility to show visibility
indicators for methods and attributes. Visibility is affected by
whether the methods are specified in a protocol or implemented in a real
class.
-
Select Display Options>Attribute Name Only to show only the
names of attributes and not their types, scope, or visibility.
-
Select Display Options>Method Name Only to show only the
names of methods and not their parameters, return values, scope, or
visibility.
The methods displayed in a class figure are method models;
these are temporary model elements, each representing a method. The
list of method models is built from the implemented methods of the real class,
as well as the message specifications in any protocols the class conforms
to.
Likewise, the displayed attributes are attribute models, based
on the variables of the real class together with attributes specified in any
protocols the class conforms to.
A method or attribute defined in a protocol is specified; a
method or attribute implemented in a real class is
implemented. There are therefore four possible
combinations:
| Implemented
| Unimplemented
|
Specified
| Protocol and class
| Protocol only
|
Unspecified
| Class only
| Neither
|
In addition, a method or attribute is characterized by scope
(whether it is defined for the class or its instances) and
visibility (public, private, or protected).
You can filter which methods appear on a class figure based on whether it
is specified or implemented, based on its scope, or arbitrarily. The
following options are available from the pop-up menu:
-
Select Filtering Options to open a window from which you can
specify which categories of attributes and methods you want to appear in the
figure. You can filter based on the following criteria:
- Specified/unspecified
- Implemented/unimplemented
- Scope (instance/class)
- Visibility (public/private/protected)
- Select Methods to limit which methods appear in the
figure. You can show only specified methods, a limited number of
methods, or all methods. Any hidden methods are indicated with an
ellipsis (...).
- Select Attributes to limit which attributes appear in the
figure. You can show only specified attributes, a limited number of
attributes, or all attributes. Any hidden attributes are indicated with
an ellipsis (...).
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]