Visual Modeling with Mouse Gestures

Mouse gesture is one of the most useful visual modeling tools in all our VP products. It helps you to draw and manage your diagram with just a click of your mouse. Mouse gesture are mainly divided into three types: the drawing gesture, the command gesture and the connection gesture. This article will give a brief introduction of these three types of mouse gesture and another 11 basic gestures, and then show how to apply these three types of mouse gesture on the diagram.

Applying mouse gesture

To apply mouse gesture, simply press and hold the right mouse button and then move the mouse to form the gesture indicated by a blue path. When you release the button, the gesture will be executed automatically. If you use a drawing gesture, an element will be created on the diagram. If you use a command gesture, the command will be directly executed. The connection gesture enables you to create connections quickly with your mouse.

Three types of mouse gesture are shown as below:

Drawing gesture

Drawing gesture

Command gesture

Command gesture

Connection gesture

Connection gesture

Moreover, 11 basic gestures are shown as follows:

11 basic gestures

11 basic gestures

The node is the start point of each gesture. * represents drawing the gesture path can start at any point while # represents it can be bi-directional.

Using Drawing Gesture

By applying drawing gesture, you can directly create the element by drawing on the diagram.

  1. Let’s create a Product class on the following class diagram. Press and hold the right-mouse button, move the mouse to form the clock-wise rectangle gesture which forms a blue path on the diagram.

    Draw a class

    Draw a class

  2. Release the button and a new class element is created automatically.

    A class is created

    A class is created

  3. Rename the class as Productby double-clicking on the newly created class.

    Rename class as Product

    Rename class as Product

Creating Attributes and Operations

To create an attribute in a class, simply press and hold your right click, and drag from right to left. If you drag outside the class, the setter and getter property will be set to be true.

Create an attribute

Create an attribute

To create an operation, press and hold your right click, and drag from left to right. If you drag outside the class, the operation will be public. If you release the mouse inside the class the visibility will be protected.

Create an operation

Create an operation

Using Command Gesture

By applying command gesture, you can execute command to the diagram, such as the layout of diagram.

  1. Let’s execute the auto layout on the following class diagram. Press and hold the right-mouse button, move the mouse down-right to form the gesture indicated by the blue path.

    Execute layout on class diagram

    Execute layout on class diagram

  2. Release the button, the class diagram is laid out neatly.

    Layout diagram

    Layout diagram

Using Connection Gesture

By applying connection gesture, you can easily connect elements together with the mouse instead of choosing  from the diagram toolbar.

  1. Let’s connect two actors with shapes on the following use case diagram. Press and hold the right mouse button and drag a line from Delivery Staff to Update Shipment Detail. As you can see a blue line appears instantly.

    Connect actor with use case

    Connect actor with use case

  2. Release the button and a connector will be created immediately.
    Connection is created

    Connection is created

    Continue to connect Account Admin with Manage Account.

  3. The following diagram shows Delivery Staff and Account Admin connecting with Update Shipment Detail and Manage Accountrespectively:

    Finished connecting

    Finished connecting

Mouse gesture Support Resource

In order to assist in applying mouse gesture on the diagrams, a Mouse Gestures dialog box shows various mouse gestures available for different diagrams.

Opening Mouse Gesture Dialog Box

To open the Mouse Gesture dialog box, simply select Help > Mouse Gestures… from the main menu.

Open Mouse Gestures dialog box

Open Mouse Gestures dialog box

Introduction of Mouse Gesture Dialog Box

The Mouse Gestures dialog box shows the mouse gesture available on the selected category. When you select a category, the name, description and the drawing path for each gesture available for the selected category are displayed on the dialog box.

A brief introduction of Mouse Gestures dialog box

A brief introduction of Mouse Gestures dialog box

Animation

  1. Let’s see the animation of  Package. Select Class Diagram from the drop-down menu of Category.

    Select Class Diagram

    Select Class Diagram

  2. Move the mouse over the row of Package, it subsequently shows the animated drawing path.

    The animation of package

    The animation of package

Application of mouse gesture on different tools

Windows XP/ Vista/ 2000/ 2003/ 98: To apply mouse gesture on Windows platform, simply hold down the right mouse button and move the mouse to form the gesture indicated by a blue path.

Application of mouse gestures on Windows

Application of mouse gestures on Windows

Linux and Unix: To apply mouse gesture on Linux and Unix platform, press the Ctrl key and hold down the left mouse button, move the mouse to form the gesture indicated by a blue path.

Application of mouse gestures on Linux and Unix

Application of mouse gestures on Linux and Unix

Mac OS X: To apply mouse gesture on Mac OS X platform, press the Apple key and hold down the left mouse button, move the mouse to form the gesture indicated by a blue path.

Application of mouse gestures on Mac OS X

Application of mouse gestures on Mac OS X

47 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply