Help - Selecting elements
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.
- 1 Selecting elements with the mouse
- 2 Selecting groups of elements
- 3 See also
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
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).
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).
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.
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.
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.)
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.)