Modeler: Tutorial/Information Grammar Diagram

From CaseTalk Wiki
Jump to: navigation, search

In this lesson you will learn how to build, change and configure diagrams. (Starting with the diagram you have created in the previous lesson)

Popup-menu's are frequently used in this lesson. Almost every object in a diagram has it's own popup-menu. You can activate this popup-menu by positioning the mouse cursor on the object and pressing the right mouse button. The popup-menu of the diagram itself can be activated by positioning the mouse on an emtpy area of the diagram and pressing the right mouse button.

Placing all object types and fact types

Step 6

1. Drag the following object types and fact types from the IG Viewer to the diagram:

Apprenticeship, Apprenticeship City, apprenticeship code, Apprenticeship Description, Apprenticeship Preference, Assigned Apprenticeship, description, and number.

If you are working on a low resolution monitor you could use the popup menu 'Add Related'. Once you have arranged averything, you should end up with a diagram similar to this one:

Lesson1igd.GIF

Removing Objects

Step 7

1. Open the popup-menu of the 'Apprenticeship' object and select Hide.

Both 'Apprenticeship' and all lines to 'Apprenticeship' will be removed from the diagram.

Note: 'Apprenticeship' did not disappear from the Repository Window! Currently 'Apprenticeship' is the only object type / fact type in the Repository which is displayed in black. This indicates it is not placed in the active diagram. (The name of the active diagram can be found at the bottom of the Repository Window.)

2. Drag 'Apprenticeship' back to the diagram.

Moving Roles

Step 7

1. Keep the Alt-key pressed and drag role 11 on role 13:

Movingroles.GIF

2. Keep the Alt-key pressed and drag role 11 on role 12 to restore the diagram.

Note: As an alternative you may use the selection mode buttons in the diagram to drag roles.

Creating corner points in lines

Step 7

1. Click on the connecting line from 'Apprenticeship Preference' to 'Apprenticeship':

It is possible to select and drag corner points, they even have a popup-menu. In the popup-menu you can select options like Remove and Straight Line. It is possible to create multiple corner points in each line. If multiple points are selected, multiple points can be dragged.

2. Open the popup-menu from the corner point and select Straight Line.

Zooming diagrams in and out

1. Open the Diagram menu and select Zoom, 115%. The diagram will be enlarged.

2. Open the Diagram menu and select Zoom, Zoom Out.

Using information blocks

Step 7

1. Open the Diagram menu and select Show Diagram Info.

The Diagram menu is only available if the Diagram Designer is the active window.

2. Select 'lesson.ig' in the Project Manager, open it's popup-menu and select File Properties.

Projectigdinfo.GIF

This option is also available from the IGD Info block's popup-menu.

3. Enter the information below, then click Ok:

Lesson1igdproperties.GIF

4. Activate the Diagram Designer window, open the IGD menu and select Show Data Type Info:

A list of all label types and the associated datatypes will be shown. Currently every datatype is 'default(1)'. The FCO-IM Casetool will generate a proposal for the datatypes during the GLR-Algorithm (Lesson 6).

5. Open the Diagram Designer's popup-menu and select New Text Block:

Enter the text as shown below.

Firsttextblock.GIF

6. Select 'File\Apply and exit'.

7. Open the text block's popup-menu and select Show Border.

The border will be shown with a dotted-line. When printed the border will not be displayed.

8. Remove the text block by selecting Remove from it's popup-menu.

Configuring an IGD

Using diagram styles

Configuring (multiple) objects

Using the alignment functions

Printing a diagram