Diagram Editor

The Class and Sequence Diagram Editors share the following features.

Go To Diagram

You may quickly open a diagram by specifying its name:

  1. Press Ctrl + Shift + G or select Go To | Diagram... menu item.
  2. Start entering the diagram name in the dialog that appears.

    Go To Diagram dialog
  3. Select the desired diagram from the lookup list and press Enter to open it or Esc to cancel.

Select In Target

You may select the focused element in a Diagram (or the Diagram as a whole) in one of the available views (namely Project, Package, Commander and Model Explorer).

  1. Open a Diagram and select the desired element.
  2. Press Alt + F1 or select View | Select In... menu item.
  3. Select the desired target.

    Select In Target

Show/Hide Grid

To show or hide the grid lines painted at the background of diagrams:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Hide Grid (or Show if hidden).
      or
    • right-click on the diagram and invoke Hide Grid (or Show if hidden) from the pop up menu.
      Show/Hide Grid context menu

Hand Tool

With the Hand Tool you may scroll a diagram by dragging the mouse:

  1. Open a diagram in the editor.
  2. Select the Hand Tool Hand Tool on the tool bar.
  3. Press the mouse on the diagram and drag in the desired direction.

Note this works if the diagram is bigger than the editor.

Zoom

The Zoom feature allows to scale a diagram to some specified zoom factor (from 8% to 800%).

Predefined Zoom Factors
Predefined zoom factors are available from View | Zoom, the diagram contextual pop up menu and the diagram tool bar.

To select a predefined zoom factor:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Zoom
      Zoom menu
      or
    • right-click on the diagram and invoke Zoom from the pop up menu, or
      Zoom context menu
    • click on the zoom list combo box arrow button.
      Zoom list box
      In this last case, it is also possible to specify a new zoom factor by typing the new value in the list box editor.
  3. Choose one the predefined zoom factors.

Zoom In

To scale up the diagram to the next zoom level:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Zoom | Zoom In.
      or
    • right-click on the diagram and invoke Zoom | Zoom In from the pop up menu.
      or
    • click on the Zoom In button Zoom In tool bar button in the tool bar.

Zoom Out

To scale down the diagram to the next zoom level:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Zoom | Zoom Out.
      or
    • right-click on the diagram and invoke Zoom | Zoom Out from the pop up menu.
      or
    • click on the Zoom In button Zoom Out tool bar button in the tool bar.

Actual Size

The Actual Size action will change back the zoom factor to 100%:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Zoom | Actual Size.
      or
    • right-click on the diagram and invoke Zoom | Actual Size from the pop up menu.
      or
    • click on the Actual Size button Actual Size tool bar button in the tool bar.

Fit Diagram

The Fit Diagram action will scale the diagram so is always completely visible in the available editor area. This action may be toggled on and off:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Zoom | Fit Diagram.
      or
    • right-click on the diagram and invoke Zoom | Fit Diagram from the pop up menu.
      or
    • click on the Fit Diagram button Fit Diagram tool bar button in the tool bar.

Fit Width

The Fit Width action will scale the diagram so its width is always visible in the available editor area. This action may be toggled on and off:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Zoom | Fit Width.
      or
    • right-click on the diagram and invoke Zoom | Fit Width from the pop up menu.
      or
    • click on the Fit Width button Fit Width tool bar button in the tool bar.

Fit Height

The Fit Height action will scale the diagram so its height is always visible in the available editor area. This action may be toggled on and off:

  1. Open a diagram in the editor.
  2. Either:
    • invoke View | Zoom | Fit Height.
      or
    • right-click on the diagram and invoke Zoom | Fit Height from the pop up menu.
      or
    • click on the Fit Height button Fit Height tool bar button in the tool bar.

Zoom In Tool

Use this tool to zoom in the diagram with the mouse:

  1. Open a diagram in the editor.
  2. Select the Zoom In Tool Zoom In Tool from the tool bar.
  3. Every time you click in the diagram it will zoom in.

Zoom Out Tool

Use this tool to zoom out the diagram with the mouse:

  1. Open a diagram in the editor.
  2. Select the Zoom Out Tool Zoom Out Tool from the tool bar.
  3. Every time you click in the diagram it will zoom out.