Legend Properties

Syntax: <yyyy label="legend-label" …/>

Examples:

<style rule="@plugin='Y'" label="Plugin Compo&#xad;nent">stroke-width: 2</style>

<overlay rule="VERSION(@introduced) = VERSION()" type="#new" label="New in {@ver}"/>

Use: Specifies the label to appear in the legend for an option.

If a label is specified for an option, it appears in the legend (depending on the value of the group’s show-unused attribute). For some groups such as colours, if the label is not present, the value attribute will be used.

Any text in the label that appears in braces is replaced with the equivalent value from the root element of the Model XML (<model>). Hence, in the above example, the text {@ver} is replaced by the ver attribute of the <model> element in the calling Model XML. This allows the values in the legend to be based on details in the model without having to hardcode them into the Shapes XML file. This makes it easier to reuse the same Shapes file for multiple models.

The value of label is also referenced by items in the Examples section.