Changing an element's size in a diagram

 

Re-sizing an element

To change the size of an element in a diagram, simply select one of the control points surrounding the element and drag it to the required size.

 

Re-sizing a class

 

 

If an element contained within another element is resized, the container element is also automatically resized.

 

Re-sizing a class within a parent class

 

As you can see, if "ClassB" is expanded, then the size of "ClassA" is automatically adjusted to accommodate the size of "ClassB".

 

Note:      The size of the parent element cannot be made narrower or shorter if this leads to the compression of the space between the elements it contains.

 

 

The "Fit to content" command

The "Fit to content" command in the context menu on a diagram element is used to adjust the size of the selected element to the size of its properties: name, attributes, operations, elements contained inside it, and so on.

 

Using the "Fit to content" command

 

Steps:

1.      Right-click on the element whose size you are going to adjust to open the context menu.

2.      Run the "Fit to content" command.

3.      The size of the class has been adjusted to its contents.