Diagrams : Working with Diagrams

Working with Diagrams
You can work with diagrams in a variety of ways for your own information, and you can use them to share aspects of your project with others in a visual way that is easy to understand. This section presents some common tasks and lists the various tools you can use to work with all types of diagrams.
Configuring Diagram Preferences and Properties
Diagram Preferences
See Diagram Preferences to understand and set preferences so that diagrams display as you desire.
Diagram Properties
Use the following properties to handle diagrams that are too complex to display in a timely manner. You can adjust the values in the BE_HOME/studio/eclipse/configuration/studio.tra file to define upper limits:

 
#Diagram properties
be.studio.project.diagram.nrEdges=3000
be.studio.project.diagram.nrMaxEdges=1500

 
If the number of edges in the diagram exceeds the limit defined by be.studio.project.diagram.nrEdges, then the usage links in the diagram are hidden. Usage links are links from a rule or rule function to other rules or rule functions it uses.
If the number of edges in the diagram exceeds the limit defined by be.studio.project.diagram.nrMaxEdges, then symmetric layout is run as default rather than hierarchical because symmetric layout is faster and less expensive.
Different Ways to Create Diagrams
In TIBCO BusinessEvents Studio you can create diagrams in three ways. The Table 46, Creating Diagrams lists these three ways and the diagrams you can create using them.
In Studio Explorer, right-click a resource or a project, and select the appropriate menu option
Selected Entity Project Diagram, Concept Model Diagram, Event Model Diagram
Selected Entity Project Diagram, Concept Model Diagram, Event Model Diagram, Dependency diagram
In a resource editor, click the appropriate diagram button in the top right corner
Concept Model Diagram, Event Model Diagram, Dependency Diagram, Sequence Diagram
In a Selected Entity Project diagram, right-click anywhere on the canvas
Performing Common Tasks
You can perform the following common tasks on all types of diagrams:
Click any arrowhead to move the arrow to any other element in the project. When you hover the mouse over an arrowhead, you see a small graphic on it. ()
Using Diagram Tools
You can work with diagrams with the help of the following tools available from the Diagram menu:
Interactive Tools, such as Select, Pan, Magnify, Marquee Zoom, Interactive Zoom, Link Navigator
Layout, such as Default Layout, Circular Layout, Orthogonal Layout, Symmetric Layout, Rectilinear Hierarchical Layout, and Oblique Hierarchical Layout
The above tools are also available on the toolbar when you create or display a diagram. The toolbar also has three additional tools listed below:
For more details about the diagram tools, see Diagram Options and Tools Reference.
Interactive Tools
To access the Interactive Tools, select Interactive Tools from the Diagram menu. They are also available on the toolbar when you create or display a diagram. Interactive Tools let you select, pan, and magnify diagrams. They also include tools such as marquee zoom, interactive zoom, and link navigator. For more details about these tools, see Diagram Options and Tools Reference.
Layout
You can access the Layout menu from the Diagram menu. They are also available on the toolbar when you create or display a diagram. Layout options let you change the layout of a diagram to Circular, Orthogonal, Symmetric, or Hierarchical. For more details about these tools, see Diagram Options and Tools Reference.
Context Menu Diagram Tools
Diagram tools are available as context menus for diagram canvas and objects. Table 47, Context Menu Options for Canvas and Objects lists these context menu options.
Canvas – Selected Entity Project Diagram
Canvas – All diagrams
Canvas – All diagrams
Canvas – All diagrams
Canvas – All diagrams
Object – Selected Entity Project Diagram
Object – Selected Entity Project Diagram
Object – Selected Entity Project Diagram
Object – Selected Entity Project Diagram
Object – All diagrams
For more details about the diagram tools, see Diagram Options and Tools Reference.
Exporting a Diagram to an Image
The Export to Image option enables you to save the diagrams locally for later use.
To Export a Drawing (Diagram) to Image
1.
From the top menu, select Diagram > Export to Image. You see the Export Drawing to Image dialog.
2.
3.
4.
Check the check boxes Visible Window Only and Selected Objects Only as appropriate to specify the content of the image.
5.
6.
The diagram is exported to an image, and saved on the system.
Printing a Diagram
You can set up preferences, preview the print job, and then print the diagram.
To Set up Printing Preferences
The Print Setup dialog enables you to specify the print setup for a diagram.
1.
2.
3.
In the Scale By section, select an option to scale the diagram by pages, by actual size or by zoom level.
4.
If you want multiple prints, you can specify if you want the page numbers and crop marks to be printed, by clicking to select the respective checkboxes.
5.
If you want a caption for your diagram, you can type a caption in the text box that appears on enabling the Print Caption checkbox. You can also select a Font for this caption, and its position on the page.
6.
If you want to have borders for your diagrams, click to select the Print Border checkbox. Click Color... to specify the color of the border.
7.
8.
Use Page Setup to specify the size, orientation, and other page properties.
9.
10.
To Preview and Print a Diagram
1.
From the top menu, select Diagram > Print Preview. An image of the diagram to be printed displays.
2.
Setting Diagram Preferences
You can set the preferences for all types of diagrams.
To Set Diagram Preferences
For more information on Preferences, see Chapter 25, TIBCO BusinessEvents Studio Preferences.
1.
From the top menu, select Window > Preferences.
2.
In the Preferences dialog, expand TIBCO BusinessEvents, and then expand Diagram.
3.
On the right side, you see preferences for the selected diagram type.
4.
OR
To set all preferences to their default values, click Restore Defaults.