Chapter 12 “Themes” described the possibility of using a legend, a separate window containing samples of displaying styles for feature types and filter groups of the browsed theme. The legend is very useful to understand the meaning of displayed theme. In this connection, ObjectLand also provides the user with a possibility to include into a layout the legend element explicating the theme included into this layout before.
To add a legend into the layout it is necessary to select the theme to which the legend should belong. This theme should be the only selected element of the layout. After that the button
of the mode toolbar should be pushed and the legend should be located on the layout page pressing the left mouse button in one corner of the rectangle and releasing it in the opposite one. Then a dialog box “Adding/Properties of legend” shown at figure 47-2 will be opened.
Figure 47-2. Dialog box “Properties of legend”
If the user refuses to specify legend properties (for example, pushes the button Cancel), adding of the legend is canceled.
The created legend becomes selected element of the layout.
At figure 47-3 the layout page containing a theme and the legend belonging to it is shown.
Figure 47-3. Layout page with a theme and a legend
The legend as a layout element has a big number of properties permitting the user to choose the most convenient form for display.
The pane Group by allows for selection of one of the possible ways of grouping feature types in legend using the radio buttons: either by theme layers or by spatial category: point types, then line, area, text and image ones.
Five buttons with names … style allow specifying displaying style accordingly:
Title style – for names of root elements (that is, names of layers or names of spatial categories);
Filter group style – for filter descriptions;
Samples style – for names of feature types and names of filter groups (that is, those elements for which displaying samples are present);
Background style – for displaying the background at which legend rows will be displayed;
Border style – for displaying the border of the layout element – legend.
These buttons can be divided into two groups considerably differing from each other. While the two last buttons (Background style and Border style) permit the user to choose only the fill and hatch styles for the background and the line style for legend border, the first three buttons (Title style, Filter group style and Samples style) contain additional fields for specifying parameters of inscription size.
Let's take as an example specifying title style (figure 47-4).
Figure 47-4. Dialog box “Title style”
The field Height shows the height of the inscription (in centimeters) for displaying names of root elements of the legend.
The field Indent shows the size (in centimeters) of indent which will be applied to all sides around names of root elements. The field Indent factor expresses percentage ratio of this indent to the height of inscription. Changing any of these two fields causes automatic recalculation of the other one.
Indent factor cannot be greater than 50%.
Filter group styles and sample styles are specified similarly, that is, they allow the user to indicate the value of height of the inscription and indent.
If the box Draft is checked, the legend is displayed in the pane as a rectangle of gray color with an inscription: “Legend: theme name” in the center of it. The draft mode speeds up layout redrawing and does not affect its display at printing like in displaying a theme.
If the box Only selectable is checked, the legend includes only the feature types which can be selected in the corresponding theme.
The checkbox Show border turns on display of the border line around the legend.
The checkbox Show titles determines if the names of theme layers, spatial types, filter description should be displayed in the legend or it is necessary to display only the feature types and filter groups.
The checkbox Apply indents determines if the indent values specified in the properties of different legend elements should be taken into account when displaying the legend or all the rows of the legend should be shown without indents.
The checkbox Auto calculation of text height permits automatic recalculation of inscription heights in the cases when the number of rows in each legend column is changed. It can happen, for example, when changing the number of columns, while turning on or turning off checkboxes Only selectable and Show titles, or in case of replacement of the theme to which the present legend belongs. If the box is checked, the system ignores the text heights specified in the property dialog boxes of root elements, filter elements and sample elements. Such a height is selected with which legend lines do not overlap each other. If the box is cleared, the height of the text is retained even if they overlap each other.
The checkbox Auto format permits automatic calculation of the number of columns depending on the number of legend elements and their height. This checkbox has some influence only if automatic calculation of text heights is disabled.
The field Number of columns shows the number of legend columns, and if the box Auto format is cleared, it permits the user to set the number of columns manually. In this case the user is responsible for the quality of arranging legend elements.