Edit elements Changing the format of a metaclass In addition to changing the format of an individual element, you can change the format of an entire metaclass. For example, you can specify styles for all classes, all actors, all associations, and so on. To change the default settings for an entire metaclass: 1. Right-click the diagram and select Format to open the Format window. Note: For diagrams only, the Format window has an Apply to modified elements check box. For projects, packages, and stereotypes, there is an Apply to sub elements check box instead. 2.
In the Select Meta-class to format box, select the metaclass whose attributes you want to change, then click the Format selected meta-class button. Note: The Select Meta-class to format box displays only the metaclasses that are relevant for the type of diagram. 3. Use the Format Properties window to select the new line, fill, and font attributes for the metaclass and click OK . (For more information about using the Format Properties window, see Change the format of a single element ). The Preview box on the Format window displays how the element will look in the diagram. 4. Click one of the available buttons on the Format window: a. Cancel to discard all of your changes. b.
OK to save your changes to the specified metaclasses. Note: If Apply to modified elements is available when you click OK , all the existing elements in the selected scope (of the given metaclass) are changed to the specified format (in addition to any elements that are created later). If Apply to modified elements is unavailable, existing elements of the specified metaclass that have individual overrides are not changed, but new elements will use the new style by default. For example, consider the case where all actors have white fill by default, but actor A has blue fill with yellow stripes.
If you change the default fill color for all actors to be green, and Apply to modified elements is available, all the actors will have white fill. However, if you clear this check box, all the actors will have white fill, except for actor A, which will keep the blue fill and yellow stripes. All subsequently created actors will use white fill. Rational Rhapsody 441