Help - Selecting elements

From TreeGraph help

There are several ways to select elements of a TreeGraph 2-document. Besides the manual selection of single elements with the mouse TreeGraph 2 also offers powerful functions that select certain groups of elements which allows you to assign formats e.g. to a certain subtree or to all text labels very fast.

Selecting elements with the mouse

If you click on a document element with the mouse, you select it. If you want to select more than one element you can hold the control-key and click on another element to add it to the selection.

If you want to clear the current selection click on any empty region of the document (without holding the control-key).

Selecting groups of elements

All functions described below are contained in the Select menu and the context menu. Additionally they can be accessed by keyboard shortcuts.

The functions listed below can all be combined, i.e. all elements selected by a function are added to previous selection.

Selecting all elements

Use the Select all function to select all elements in the tree (including all legends and the scale bar if present).

Invert selection

Selects all elements in the tree (including all legends and the scale bar if present) which are currently not selected. All currently selected elements are removed from the selection.

Note that this feature was not available before version 2.0.24.

Selecting a subtree

The option ''Select subtree(s) selects all elements (no matter of their type) in the subtree(s) under the currently selected elements (not including any legends).

Selecting elements of a certain type

TreeGraph 2 offers two ways to select elements which have the same type as currently selected elements.

Type in whole document

The Select this type(s) in document option selects all elements that have the same type as one of the currently selected elements in the whole document (including legends).

Example
A branch and a legend are selected.
     →
All branches and legends in the whole document (including root elements of the previously selected branch) have been selected.

Type in subtree

The Select this type(s) in subtree(s) option selects all elements in the subtree(s) under the previously selected elements which have the same type as the respective selected root elements (i.e. in every subtree are only elements selected that have the same type as one previously selected element which lies on the way from that element to root of the tree).

Example
A node and a branch are selected as the root of subtree 1 whereas only a node is selected as the root of subtree 2.
     →
All nodes and branches in subtree 1 have been selected because a node and a branch ware selected at the root of this subtree previously. Additionally all nodes in subtree 2 have been selected.

Although this example might look complicated you will usually use this function for simpler tasks like selecting all text labels in a subtree to edit their font size or color.

Selecting leaves

You can use the Select leaves in document function to select all leaf-nodes of a tree or the Select leaves in subtree(s) to select only the leaf-nodes which are contained in a subtree under one of the previously selected elements.

Select labels

Groups of labels can either be selected in one or more subtrees under the previously selected elements or by their label ID. If you choose to use the Select labels with this ID(s) option all labels that have the same ID as one of the previously selected labels will be added to the selection. (See the Label article to find out what a label ID is.)

Select legends

You can either use the Select all legends function to select all legends contained in a document. Alternatively you could use the Select legends with the same position index function to select only such legends that have the same position index as the currently selected legend(s). (See the Legend article to find out what the position index is.)

See also