contents.gifindex.gifprev1.gifnext1.gif

Changing the Database Schema Layout

Description

The first time you open a database with ObjectStore Inspector, the program shows the Main Schema Layout in a Database Window and automatically assigns a default position to all the classes and relations in the schema. The layout of classes and relations can be modified as follows:

Class position

Classes can be moved freely in the Schema Pane.

OSI90002.gif To change the position of a class:

OSI00000.gif Select the class in the Schema Pane.

OSI00000.gif Drag it to the desired position.

Relation position

For all notation types, the relations are represented by Bezier curves.

OSI00200.gif

Each Bezier curve features four points: the starting point, the ending point and two attractor points.

When a relation is selected, the four points are represented by gray squares that can be dragged to new positions.

OSI00201.gif

The starting and ending points of a curve cannot be moved out of the corresponding class (out of the corresponding member variable area).

OSI90002.gif To change the position of a relation:

OSI00000.gif Select the relation.

OSI00000.gif Click on the black square of a drag point.

OSI00000.gif Drag it to the desired position.

Selecting a relation

The procedure for selecting a relation depends on the relation type and the notation used.

Usually, you select a relation by clicking on the relation label. If the relation does not have a label, as in OMT notation, you select it by clicking on one of the relation ends.

OSI90002.gif To select a relation using OMT notation

OSI00000.gif Click on the circle which is displayed at the end of the Bezier curve.

OSI00202.gif OSI00203.gif

One-to-one relations in OMT notation do not have circles at the ends.

OSI90002.gif To select a one-to-one relation in OMT notation

Click near one of the ends of the Bezier curve.

OSI00204.gif OSI00205.gif

OSI90002.gif To select a relation in Booch notation

Click on a relation label (yellow boxes) or on the relation ends.

OSI00206.gif OSI00206.gif

OSI90002.gif To select a relation in Coad-Yourdon notation

Click on a relation label (yellow boxes).

OSI00207.gif OSI00208.gif

OSI90002.gif To select a relation in Statecharts notation

Click on a relation label (yellow boxes).

OSI00209.gif OSI00210.gif

Note:

In Coad-Yourdon notation inheritance relations are represented in this way:

OSI00211.gif

while in OMT notation they are represented like this:

OSI00212.gif

OSI90002.gif To change the position of the Bezier lines representing inheritance relations in Coad-Yourdon or OMT:

OSI00000.gif Click on the inheritance symbol and drag it to the desired position;

or

OSI00000.gif Click on the inheritance symbol;

OSI00000.gif Click on the black square of a drag point;

OSI00000.gif Drag it to the desired position.

OSI00213.gif


See also

Customizing the Instance Representation

Changing the Database SchemaLayout

Tutorial: Changing the Database Schema Notation

Tutorial: Using Database Views

Tutorial: Using Abstraction Functions