When you create a component, you specify all the software
code that it comprises: libraries, header files, and any other source
files. Component diagrams generate code for components that are labeled
with the «Executable» or «Library» stereotype.
Procedure
- Click the Component Diagram button
on Diagram Tools.
- Do one of the following actions:
- Click once in the diagram to create a
component with the default dimensions.
- Click to begin the upper, left corner
of the component, drag to the lower right corner, and release.
- Edit the default name, then press Enter.
Results
The new component is displayed in the diagram
and in the browser, either in the Components folder
under the main project node, or nested under another component associated
with this diagram.
Note: You can draw a component
within another component; the browser will display the nested component
accordingly.