This topic covers the basic techniques for placing diagram elements and annotations into diagrams and drawing relationship elements between them. Drawing diagrams with Together is simple and intuitive. If you've used earlier versions of Together you can probably skip or just skim this information.
When you create a new diagram, the Diagram pane presents an empty background. You place the various Node elements (e.g., Class, UseCase, etc.) on the background and draw relationship links between them (Association, Communicates, etc.) What elements and relationships you draw is up to you... whatever meets the requirements of your model.
The main tools you use for constructing diagrams are:
Diagram Toolbars: Place icons for Node elements and draw links on the diagram background.
Diagram speedmenu: Show hidden objects, manage the layout, control Zoom, configure diagram-level Options, update diagrams and hyperlinks.
Element speedmenus: The right-click menus of the various nodes and links provide functions specific to each. For example, you can add or delete members (or delete the element itself), cut-copy-paste, hide and show elements, route links, and more. Explore the speedmenus of the different elements as you encounter them to see what's available for each one.
Inspectors: (Speedmenus | Properties) Edit diagram or element properties, create hyperlinks between diagrams, elements of diagrams and other diagrams, and between diagrams or elements and files or URLs. Edit annotations and source code comments.
To place a Node element:
Create or open a diagram
On the Diagram Toolbar click the icon for the element you want to place in the diagram. (Icons are identified with tool-tips.)
Move the pointer over the Diagram pane to the place you want to create the new element and click. This creates the new element and activates the in-place editor for its name. (Note: You can place multiple elements of the same type in one operation. See Tips and Tricks below.)
|
|
|
|
|
1. Click the desired element icon. Icon stays depressed. |
2. Move pointer over diagram and click |
3. New element created, in-place name editor activated |
To draw a relationship link between Nodes:
On the Diagram Toolbar click the
icon for the type of link you want to draw in the diagram. (Icons are
identified with tool-tips.)
To draw the link...
|
|
|
|
|
1. Click the desired link icon. Icon stays depressed. |
2. Move pointer over first element, drag to second one |
3. Drop when second element is highlighted |
Constructing diagrams with Together is straightforward and easy to master. For newcomers, this section details some techniques that you may find helpful as you work.
Selecting: Click on any element in the diagram to select it.
Speedmenus: Many things that you will want to do with elements or the diagram as a whole can be done from the different speedmenus. Some of the operations include:
Right-click on diagram elements, including class members, for access to element-specific operations on the respective speedmenu. Right-click the background to access the diagram's speedmenu. (Note: The speedmenu of a selected element is duplicated in the main Object menu.)
Viewing: Scroll the Diagram pane horizontally and vertically using its scrollbars or the Overview tab.
Properties: Clicking on the diagram's background displays the diagram's properties in the diagram Inspector. Selecting an element in the diagram displays its properties in the element's Inspector. View Inspectors using Properties on the speedmenu of a selected element or the diagram background.
Adding multiple elements: You can place a number of nodes of the same type in the diagram without returning to the toolbar. These will all have default names which you can then edit in-place or in the properties Inspector for each one.
Drawing multiple links: You can also draw multiple links of the same type in the diagram without returning to the toolbar in much the same way as you can place nodes.
Canceling toolbar selection: After making a selection on the toolbar or doing the first of a multi-draw or multi-placement operation, you can cancel the operation by clicking the Select Arrow on the toolbar.
In-place editing: You can edit the name property of elements, members, and links in place. Click once to select the name label, then again to activate the in-place editor. For Attributes and Operations you can type in either the full declaration statement or the element name only. The declaration must be full correct syntax for the project's target language.
Undo/Redo: Undo and Redo work with changes that affect the visual diagram, layout of elements, adding of Attributes and Operations, etc. These features do not work when the change to the diagram involves the creating or renaming a file or directory-- creating and renaming classes, interfaces or packages for example.
Tip: The size of the Undo/Redo buffer is configurable in the global or project-local workspace.config file.
See also:
Manipulating diagram elements
Editing properties
Managing diagram layout