Editing a Class

This section describes how to edit a class.

Adding and Deleting a Class

Add and delete a class in the CELL MODE.

Addition

  1. Select a cell located where you want to add a class.

  2. Perform one of the following operations:

    • Press c.
    • Click insert-class-icon on the toolbar.
    • Click [EditInsert class element] on the menu.

    This operation adds a class named “no name”. Then edit the class name or add the operation and attribute appropriately.

Deletion

  1. Select a cell in which the class you want to delete is located.

    You can also select multiple cells.

  2. Perform one of the following operations:

    • Press x.
    • Click delete-class-icon on the toolbar.

    The class located in the selected cell is deleted. The connector connected to the deleted class is also deleted.

Editing Text

In order to edit the class name, operation, and attribute, switch from the : CELL MODE to the mode such as NORMAL MODE (CLASS), INSERT MODE (CLASS), VISUAL MODE (CLASS), or INSERT MODE (DIRECT) and then edit them.

Editing in the Normal Mode and Insert Mode

  1. Select a cell having the class with the text you want to edit.

  2. Press i and switch the mode to the NORMAL MODE (CLASS).

    After changing the mode, a cursor for editing the text appears.

  3. Use h, j, k, l, or Arrow keys, etc. to move the cursor position.

    For operable key bindings in the NORMAL MODE (CLASS), refer to link.

  4. Then press i and switch the mode to the INSERT MODE (CLASS).

  5. Enter the text.

    You can use the Arrow keys to move the cursor in the INSERT MODE (CLASS) too.

Text Selection in the Visual Mode

  1. Select a cell having the class with the text you want to edit.

  2. Press i and switch the mode to the NORMAL MODE (CLASS).

    After changing the mode, a cursor for editing the text appears.

  3. Use h, j, k, l, or Arrow keys to move the cursor to the selection starting point.

    For operable key bindings in the NORMAL MODE (CLASS), refer to link.

  4. Press v and switch the mode to the VISUAL MODE (CLASS).

  5. Use h, j, k, l, or Arrow keys to move the cursor to the selection end point.

  6. You can press x to delete the selected text.

Editing in Insert Mode Direct

  1. Double-click a cell having the class with the text you want to edit.

    Or you can select a cell having such class and press I. The mode is then switched to the DIRECT INSERT MODE (CLASS).

  2. Enter the text.

    You can use Arrow keys to move the cursor in the INSERT MODE (DIRECT).

Attribute and Operation

The areas in which the operation and attribute are descrived are not shown initially. The following operations allow such area to appear.

Display

Pressing Shift + Enter with the cursor being inside the class adds a new area at the bottom of the area where the cursor is positioned.

However, you can add up to two areas (operation and attribute).

Gridraw does not specify what an added area should be used for. Users can use it for describing the attribute and operation appropriately.

  1. Select a cell having the class in which you want to display the operation or attribute.

  2. Press i or I to switch the mode to the NORMAL MODE (CLASS) or INSERT MODE (DIRECT).

    After changing the mode, a cursor for editing the text appears.

  3. Use h, j, k, l, or Arrow keys to move the cursor to the selection starting point.

  4. Press Shift + Enter.

    A new area is added under the area where the cursor is positioned.

Non-display

If you empty and delete the text in a operation or attribute area you want to hide, the area will be hidden.