UML Designer User's Guide


Adding a class design figure

To add a class design to the diagram, follow these steps:

  1. Select Class figure icon Class from the tool bar.
  2. Place the new figure on the drawing surface.

    When first added to the drawing surface, the new figure is labeled with a question mark. This is because it is not yet associated with any underlying model element (in this case, a class design).
    Class figure illustration (1)

  3. Click mouse button 2 on the figure to display its pop-up menu.
  4. Select Attach from the pop-up menu.
  5. A window appears prompting you for the class design you want to link to. The one we want doesn't exist yet, so instead of selecting from the list of available class designs, type Catalog in the Specify New Item field at the bottom of the window.
  6. Select New.
  7. The next window confirms the name of the new class design, and also confirms that we want to create a real Smalltalk class in addition to the class design. From here, you can specify the superclass and the Smalltalk application for the new class; if you specify a class that already exists, UML Designer attaches the class design to the existing class. Accept the defaults and select OK to create the class design.

The new class design is created and attached to the figure, which is now labeled Catalog.
Class figure illustration (2)

When first created, the new class design figure is empty; it does not show any methods or attributes. If the underlying Catalog class (which we just created) had any methods or instance variables, they would appear in the class design figure. (If you want to see the class definition, double-click on the Catalog class figure, or select Open With>Class Browser from its pop-up menu, to open a class browser.) In our case, however, we want to use a protocol to indicate the interface of the Catalog class.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]