Toolbars

There are different toolbars for the visual graph editor that allow you to access features by only one click. Per default, the following toolbars are shown:

  • Main Toolbar

  • Alignment Toolbar

Main Toolbar

The Main Toolbar consists of the following actions. Clicking at an action means that your mouse pointer applies this action at the visual graph editor whiteboard:

  • Move: To select elements, either click at unused space at the whiteboard, keep the mouse pressed and draw a rectangle that contains some data elements and/or pointers to select these elements or otherwise directly click at an unselected element to select this element. If you click at a selected element or a set of selected elements, respectively, by keeping the mouse pressed and moving around you can move these elements. Moving selected elements is also possible with the arrow keys.

  • Add Element: Click at an arbitrary position at the visual graph editor whiteboard to create a new data element that belongs to the currently selected data structure. By keeping the mouse pointer pressed at the button, a menu shows up at which the data type of the new created data elements can be selected (only if different data types exist).

  • Add Connection: Click at one data element, keep the mouse pressed and draw a line to another data element to which the pointer/edge shall point. This action is only successful if the current graph allows to add this edge (e.g., in an undirected graph you are not allowed to add multiple edges between two data elements). By keeping the mouse pointer pressed at the button, a menu shows up at which the pointer type of the new created pointers can be selected (only if different pointer types exist).

  • Delete: Click at an element to delete it. If you delete a node, all adjacent edges are also deleted.

  • Zoom: Click at the whiteboard, keep the left mouse button pressed, and by this draw a rectangle. The whiteboard will be zoomed to the selected area. Using the mousewheel to zoom in or out as well. A double click with the left mouse button restores the original zoom.

Alignment Toolbar

You can add the optional Alignment Toolbar. Pressing an action at this toolbar has direct effect to the currently selected nodes:

  • Top: Align the data elements at the vertical position of the top-most data element. This only affects the vertical positions.

  • Center: Align the data elements at the vertical position given by the center of all selected data elements vertical positions. This only affects the vertical positions.

  • Base: Align the data elements at the vertical position of the bottom-most data element. This only affects the vertical positions.

  • Left: Align the data elements at the horizontal position of the left-most data element. This only affects the horizontal positions.

  • Center: Align the data elements at the horizontal position of the top-most data element. This only affects the horizontal positions.

  • Right: Align the data elements at the horizontal position of the right-most data element. This only affects the horizontal positions.

  • Circle: Aligns the data elements at a circle of diameter equals to the maximal distance of the data elements. The data elements are positioned in the same sequence as given by view from the center of gravity of these data elements.

  • Minimize Crossing Edges: Rearrange the selected data elements to minimize the number of crossing connections (application of the Fruchterman-Reingold algorithm).