Example Groups

In certain scenarios, the desired relationships can be expressed only by creating examples manually. This can be done by creating an examples group, which defines a set of components (<cmp> elements), each of which explicitly states the styling and label to appear in the legend.

<?xml version="1.0"?>
<shapes>
<patterns>
<overlay rule="s12/@ref='true' or @ref='true'" label="Reference" type="striped-diag-up"/>

</patterns>

<examples>
<cmp overlay="Reference">Reference Component</cmp>
<cmp style="Outsourced">Outsourced in {@ver}</cmp>
</examples>
<styles>
<style label="Outsourced" rule="@outsource">stroke-dasharray: 2,3</style>

</styles>
</shapes>

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

Example: <examples> <cmp …/> … </examples>

Use: A group of explicitly styles components to draw with an optional label.

The <examples> element defines a set of components to draw in the legend. It is only drawn if referenced from the Model XML file. There can be any number of example groups in a Shapes XML file.